Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

run seedDb script not where documentation implies #91

Closed
kimcs opened this issue Jun 24, 2020 · 5 comments · Fixed by #104
Closed

run seedDb script not where documentation implies #91

kimcs opened this issue Jun 24, 2020 · 5 comments · Fixed by #104
Assignees
Labels
we got you Someone from the team is currently working on this

Comments

@kimcs
Copy link

kimcs commented Jun 24, 2020

I was finally able to run the command npm run seedDb after i discovered that I needed to be in the api subfolder for this to work. This is not reflected in the documentation.

Also the seedDb command for docker at the bottom of the README does not work either, perhaps this is a similar issue?

@udaykor
Copy link
Contributor

udaykor commented Jun 27, 2020

@kimcs I have been able to use the seedDb. Infact, I have used this starter as a way for me to get my own react app become a grand stack.

In the README, this is marked as optional step.

Did you have issues running seedDB? What is the error you see? Can you help explain more on what happens when you run seedDB. Is your Graphql docker container up?

@KavitaKirdkude
Copy link

I am also facing the issue with seedDb command.

I have followed the GrandStack starter project to create my first GrandStack application. I have created the Neo4J sandbox with the blank database and added the respective information into the .env file.

When I try to run the command npm run seedDb in a separate terminal within the "api" folder, the command fails and the Database is not seeded. The error I am receiving is -

Error: Error: Network error: Unexpected end of JSON input at C:\Kavita\GrandStackProjects\networkManagementApp\api\src\seed\/seed-db.js:36:17 at processTicksAndRejections (internal/process/task_queues.js:97:5) at async Promise.all (index 0)

I have verified that the mutations that I am getting from the method getSeedMutations() is a valid JSON.

I am unable to find any solution for the same. Is anyone facing similar issue and found any solution?

@ed42311 ed42311 self-assigned this Aug 12, 2020
@ed42311 ed42311 added the we got you Someone from the team is currently working on this label Aug 12, 2020
@ed42311
Copy link
Contributor

ed42311 commented Aug 12, 2020

@kimcs Thanks for checking out the template, going to break this down into separate issues, because these seem to be separate items. The one I would like to address is the one in the title.

I was finally able to run the command npm run seedDb after i discovered that I needed to be in the api subfolder for this to work. This is not reflected in the documentation.

You are right about that, built a script connector and updated the documentation to reflect updates here: #104

I broke the docker issue out:
#103

@ed42311
Copy link
Contributor

ed42311 commented Aug 12, 2020

@KavitaKirdkude you might be running into a seperate issue.
Created #105

@ed42311 ed42311 linked a pull request Aug 12, 2020 that will close this issue
@ed42311
Copy link
Contributor

ed42311 commented Aug 12, 2020

Going to close this issue withe docs update branch and moving other non-related issues

@ed42311 ed42311 closed this as completed Aug 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
we got you Someone from the team is currently working on this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants