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...
I am making a GraphQL API where I would be able to retrieve a car object by its id or retrieve all the cars when no parameter is provided.   Using the code below, I am successfully able to retrieve a single car object by supplying id as a parameter....
GraphQL return null using Sequelize update.  updatePerson: {   type: Person,   args: {     value: {       type: UpdatePersonInputType     },     where: {       type: WhereUpdatePersonInputType     }   },   resolve(_, args) {     return Db.models.pers...
I am trying to retrieve some data from Github's GraphQL API using graphql.js library.  var graph = graphql("https://api.github.com/graphql", {   method: "POST",   headers: {     "Authorization": "Bearer <my-token-he...
I'm working on this library https://github.com/ilyaskarim/wertik-js called Wertik JS to make GraphQL + Rest API more easily, In resolvers, when I console log info, it shows undefined. For each module, I have created dynamic resolvers to make thin...
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...
I am using graphql-express to create an endpoint where I can execute graphql queries in. Although I am using Sequelize with a SQL database it feels wrong to use it directly from the server outside of my graphql resolve functions. How do I go about qu...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.