Open GabeStah opened 5 years ago
Determine how to handle Input
GraphQL schema types for performing mutations without direct object references. Maybe reference child objects within mutation logic?
Resolver: https://github.com/academind/yt-graphql-react-event-booking-api/blob/23-bugfixing/graphql/resolvers/events.js#L17
Schema: https://github.com/academind/yt-graphql-react-event-booking-api/blob/23-bugfixing/graphql/schema/index.js#L12-L39
TODO: Use .populate() https://mongoosejs.com/docs/populate.html
Standalone Apollo Client/Link