DATA MANAGEMENT JS, REACT & NODE RESEARCH REST/HTTP & GRAPHQL

node.js – GraphQL resolve another resolver with projection for the related fields

Is it possible to resolve another resolver by the .resolve() method with projection for the fields added as relations? DataTC.addRelation(“userData”, { resolver: () => UserTC.getResolver(“findById”), prepareArgs: { _id: (source) =>…Read morenode.js – GraphQL resolve another resolver with projection for the related fields

JS, REACT & NODE REST/HTTP & GRAPHQL

javascript – Sending array of objects in mutation – GraphQL

I have such GraphQL mutation from backend. mutation{ errorReportForm(input: { email:”userEmail”, name:”User Name”, description:”Some description.” attachments: [{ name:”imageName.png” type:”image/png” file:”iVBORw0KGgoAAAANSUetc.tłu=” } ]}){ admin_mail_sent client_mail_sent description email name } } So…Read morejavascript – Sending array of objects in mutation – GraphQL

JS, REACT & NODE REST/HTTP & GRAPHQL

node.js – src/index.ts:12:22 – error TS2307: Cannot find module ‘./schema.graphql’ or its corresponding type declarations

hi I want to import a graphql file. For this i have installed babel-plugin-import-graphql package.but for some reason i am getting error node_modulests-nodesrcindex.ts:750 return new TSError(diagnosticText, diagnosticCodes); ^ TSError: ⨯…Read morenode.js – src/index.ts:12:22 – error TS2307: Cannot find module ‘./schema.graphql’ or its corresponding type declarations

DATA MANAGEMENT JS, REACT & NODE REST/HTTP & GRAPHQL

command line interface – Why does Apollo Client download:schema fail with “Error: Cannot find module ‘graphql/validation/rules/UniqueTypeNames'”

I am trying to download a graphql schema with the command apollo client:download-schema –endpoint=https://my-endpoint –header=”x-hasura-admin-key: <my key>” I get an error: Error: Cannot find module ‘graphql/validation/rules/UniqueTypeNames’ I have the following…Read morecommand line interface – Why does Apollo Client download:schema fail with “Error: Cannot find module ‘graphql/validation/rules/UniqueTypeNames'”

DATA MANAGEMENT REST/HTTP & GRAPHQL

/app/node_modules/graphql-tag/index”‘ has no exported member ‘enableExperimentalFragmentVariables’.

I’m trying to import enableExperimentalFragmentVariables from graphql-tag in my angular project using import { enableExperimentalFragmentVariables } from ‘graphql-tag’;. but the import fails saying: /app/node_modules/graphql-tag/index”‘ has no exported member ‘enableExperimentalFragmentVariables’ I…Read more/app/node_modules/graphql-tag/index”‘ has no exported member ‘enableExperimentalFragmentVariables’.

DATA MANAGEMENT JS, REACT & NODE REST/HTTP & GRAPHQL

reactjs – Gatsby – How to query for all YAML in a subfolder of src/data/ using GraphQL

According to the plugin’s documentation, given: module.exports = { plugins: [ `gatsby-transformer-yaml`, { resolve: `gatsby-source-filesystem`, options: { path: `${__dirname}/src/data/`, }, }, ], } Where the source folder ${__dirname}/src/data/ contains the…Read morereactjs – Gatsby – How to query for all YAML in a subfolder of src/data/ using GraphQL