Schema
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
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
Thanks Davey - its very helpful Gary
On 8 November 2017 at 05:54, Davey [email protected] wrote:
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
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kriasoft/react-static-boilerplate/issues/264#issuecomment-342718352, or mute the thread https://github.com/notifications/unsubscribe-auth/AJJY5OaQr90jve23P4P-UO9xrpoZM5sOks5s0UIdgaJpZM4QK-Gv .
Hi Davey - it was the resolvers for
import { me } from './User'; import { stories, createStory, updateStory } from './Story'; import { createComment, updateComment } from './Comment';
That were of interest and they are not present.
Gary
On 9 November 2017 at 13:22, Gary McBride [email protected] wrote:
Thanks Davey - its very helpful Gary
On 8 November 2017 at 05:54, Davey [email protected] wrote:
Hey Gary, I have my project open here https://github.com/MyiWorlds/m yiworlds.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
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kriasoft/react-static-boilerplate/issues/264#issuecomment-342718352, or mute the thread https://github.com/notifications/unsubscribe-auth/AJJY5OaQr90jve23P4P-UO9xrpoZM5sOks5s0UIdgaJpZM4QK-Gv .
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