need some help. Let say Im requesting the following data:  {   parent {     obj1    {         value1     }     obj2    {         value2     }   } }   And I need the result of value2 in value1 resolver for calculation.  Thought of returning a promise...
GraphQL return null using Sequelize update.  updatePerson: {   type: Person,   args: {     value: {       type: UpdatePersonInputType     },     where: {       type: WhereUpdatePersonInputType     }   },   resolve(_, args) {     return Db.models.pers...
I'm trying to merge 2 dot notation strings into a GrahQL query with only javascript (it can be ES6/typescript).  For example, let say that I have an array of strings  [     'firstName',      'lastName',      'billing.address.s...
I am using the apollo-client library to query data from my Graphql server.  Some of the queries are sent to the server every 5 seconds through apollo polling ability.  Is there a generic way to add a custom header to all requests that are sent by my...
const GET_DOGS = gql`   {     dogs {       id       breed     }   } `;   I found this new syntax from here.   Can you explain this syntax? Where can I find detail about it?...
I am using GraphQL in my Node.js application. And I want to store an object that uses keys as a locale short code and values for the string in the corresponding language. (like { en: "Hello", ru: "??????" } etc.)  I want to represent...
After reading this walkthrough in the official documentation:  http://graphql.org/graphql-js/object-types/  I am very confused about how to make custom scalar type resolvers without a third party library. Here is the sample code in the docs:  var exp...
I'm playing around with GraphQL-JS right now, wiring it up to a MariaDB backend.   I've figured out how to return an entire result set:  const queryType = new GraphQLObjectType({     name: 'Query',     fields: () => ({         user...
For example I have connection type:   let usersType = new GraphQLObjectType({     name: 'Users',     description: 'users array',     fields: () => ({         array: {             type: userConnection,             description: '...
I try to make a GraphQl mutation using apollo graphQl client.   This makes an error 500 when the mutation variables contains ___typename properties (which obviously don't exist in the graphQl schema).  To fix that it is possible to set addTypenam...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.