graphql-tag Questions
2
Solved
I got the above error on a graphql query, I am using apollo-react by the way and using the Query component for rendering the data
this is my code
const GET_VEHICLE_CHECKS = gql`
query getVehicleChe...
Ultravirus asked 2/7, 2019 at 8:4
2
I want to use the library https://github.com/apollographql/graphql-tag
I'm looking for someone smarter than me that understands how to actually use it.
Say I have a GraphQL query document like so:
...
Rolland asked 5/3, 2022 at 11:54
2
Solved
I use gql from graphql-tag.
Let's say I have a gql object defined like this:
const QUERY_ACCOUNT_INFO = gql`
query AccountInfo {
viewer {
lastname
firstname
email
phone
id
}
}
`
There m...
Clearcole asked 11/10, 2019 at 8:40
1
Solved
I'm using Apollo Client with React, graphql-tag loaded with Webpack, and graphql-config to maintain the schema on the client.
There is a file ./myclient/src/features/stats/graphql/getStart.graphql...
Conspiracy asked 6/7, 2019 at 5:19
1
Solved
I'm trying to test a component that imports a .gql file. When I try to build the component in a Jest file, I receive this error:
( object. anonymous function(module exports require __dirname __fil...
Landlubber asked 12/6, 2019 at 17:58
1
Solved
Right now I have this tag below. It's static and will always get a comment with the id of 3. Is there a possible way to put a variable inside this graphQL-tag. So I can re-use the graphQL-tag, and ...
Gammon asked 1/10, 2018 at 9:46
1
Solved
I am trying to integrate Nextjs with graphql-tag/loader, This is my next.config.js file:
const withSass = require('@zeit/next-sass')
const graphqlLoader = require('graphql-tag/loader')
module.exp...
Kristikristian asked 17/9, 2018 at 16:33
1
Solved
I'm using graphql-tag. My files are like that.
./operation.graphql
Query User {
...
}
./test.ts
import { User } from './operation.graphql'; /// Module ''*.graphql'' has no exported member 'Us...
Vizard asked 30/8, 2018 at 16:19
1
© 2022 - 2024 — McMap. All rights reserved.