Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema #264

Open
workteam123 opened this issue Oct 30, 2017 · 4 comments
Open

Schema #264

workteam123 opened this issue Oct 30, 2017 · 4 comments

Comments

@workteam123
Copy link

workteam123 commented Oct 30, 2017

Hi Guys - can you upload your schema.js with resolvers (you can stub out the resolvers such as find one or many because they are database specific). It would help me and hopefully others understand more about your entry points and connections. Many thanks Gary

@DaveyEdwards
Copy link

Hey Gary, I have my project open here https://github.com/MyiWorlds/myiworlds.backend or directly to the schema area here https://github.com/MyiWorlds/myiworlds.backend/tree/master/src/schema . This uses the nodejs-api-starter backend. (Docs will come when the project is connected and working). It is connected to the spectacular Google Cloud Platform Datastore. Hopefully the schema/resolves can be helpful to you. Once you get your mind around everything the graphql/relay world gets much easier.

I have it connected to the react-static-boilerplate right now (which I will push to github once it's basics are working). In my react-static-boilerplate I walked through with koistya and made it auto generate my frontend relay schema, so stay tuned for that.
If this was not at all what you were referring to ignore this lol

@workteam123
Copy link
Author

workteam123 commented Nov 9, 2017 via email

@workteam123
Copy link
Author

workteam123 commented Nov 9, 2017 via email

@DaveyEdwards
Copy link

Those are in the nodejs-api-starter :)

createComment (linked) and update comment are on the following page
https://github.com/kriasoft/nodejs-api-starter/blob/b2e526bf74989ffa4b9990e97df98f8679ec801d/src/schema/Comment.js#L53

import { me } from './User';
https://github.com/kriasoft/nodejs-api-starter/blob/master/src/schema/User.js

and import { stories, createStory, updateStory } from './Story';
https://github.com/kriasoft/nodejs-api-starter/blob/master/src/schema/Story.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants