reaction-docs | Reaction Platform , Example Storefront | Ecommerce library
kandi X-RAY | reaction-docs Summary
kandi X-RAY | reaction-docs Summary
Documentation for Reaction, Reaction Platform, Example Storefront, and other supporting services.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of reaction-docs
reaction-docs Key Features
reaction-docs Examples and Code Snippets
docker-compose run --rm web yarn install \
&& docker-compose down --rmi local \
&& docker-compose build \
&& docker-compose up
git clone git@github.com:reactioncommerce/reaction-docs.git
cd reaction-docs
bin/setup
docker-compose up
---
id: doc2
title: document number 2
---
Community Discussions
Trending Discussions on reaction-docs
QUESTION
I'm trying to use the meteorimport
to import a product and it's many variants into the app.
It's able to import the product that I see show up in the web app, but in the miniMongo chrome extension it doesn't list the imported product or it's variants.
The meteor shell lists them with db.Products.find()
but when I try to db.Products.find()
for the specific product ID, nothing results.
Here's the Products.json I'm trying to import: https://gist.github.com/mikeumus/a5133eb710a5aacb0b4dc9e6b5662026
{ "-id" : "Faux-Wood-Blinds", "title" : "Faux Wood Blinds", "shopId" : "J8Bhq3uTtdgwZx3rz", "ancestors" : [], "createdAt" : Date( 1396558012411 ),
...
The meteorimport
is successful:
mikeumus@cbc-instance-5:~/rc-ca-blinds$ mongoimport --db meteor --collection Products --file ./fauxwood-cbc-mongodb.json/meteor/Products.json --port 3001 --jsonArray
connected to: 127.0.0.1:3001
2018-03-09T19:29:29.300+0000 check 9 28
2018-03-09T19:29:29.301+0000 imported 28 objects
Should I not be importing from the meteor mongo shell like this? Can I use Reaction.import.Object() or Reaction.import.Product() for this instead?
...ANSWER
Answered 2018-Mar-10 at 05:06The gist shows some issues in the json like Date()
isn't valid and it needs to be wrapped in square brackets []
as seen in the official Reaction Commerce example plugin /private/data/Products.json
here:
The file I was trying to import was converted from Mongo's bsondump
tool and I didn't look at it close enough before trying to import it.
Not to mention the knowledge that the /private/data/
folder both in Reaction Commerce (RC) and in an RC plugin, will import any collection items upon startup of the server.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install reaction-docs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page