0 I need to add headers to my graphql requests with angular, but I didn’t find any way. Headers is added when I use query but not mutate. Also, mutate will works if I didn’t add headers. Here is my code: import { APP_INITIALIZER, NgModule } from ‘@angular/core’; import { AppComponent } from ‘./app.component’; import […]
-2 Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 hour ago. Improve this question We get "Failed to fetch" error when […]
11 I am attempting to use the Apollo GraphQL Client for React Native. However, in some parts of my app I need to do a mutation on the GraphQL data, in such a way that the interface should not be exposed to the user. For instance, on my sign up page, I want to create […]
0 I’m querying the xExchange’s GraphQL API, but when I’m requesting the price of an LP token the field price is 0 (but it shouldn’t). Does anyone know how to fetch the price of an LP token through this API? Here is the query I’m doing: query { pairs(firstTokenID: "BUSD-40b57e") { liquidityPoolToken { identifier, price […]
11 C23 introduced new semantics in function declarators: 6.7.6.3 Function declarators […] 13 For a function declarator without a parameter type list: the effect is as if it were declared with a parameter type list consisting of the keyword void. A function declarator provides a prototype for the function. This seems to imply that a function […]
0 I am trying to fetch collections (paginated) from my shopify store using graphql query, i have written this route: async function (req: CustomRequest, res: Response) { const shopUrl: string = req.shopUrl || “”; const accessToken: string = req.accessToken || “”; let { count, after }: any = req.query; const params = new URLSearchParams(); if(!count){ […]
0 I have this entitys for user #[UniqueEntity(fields: [’email’], message: ’email is exists’)] #[ORMEntity] #[ORMTable(name: ‘user’)] #[ApiPlatformApiResource( operations: [], graphQlOperations: [ new ApiPlatformGraphQlQuery(), new ApiPlatformGraphQlMutation( name: ‘create’, denormalizationContext: [‘groups’ => [‘request:create’, ‘shopping:create’]], ), ] )] class User { #[ORMId] #[ORMGeneratedValue(strategy: ‘AUTO’)] #[ORMColumn(type: ‘integer’)] #[SerializerExpose] protected $id; #[AssertEmail(message: ’email not valid’)] #[ORMColumn(type: ‘string’, unique: true, length: […]
1 So I’m new into GraphQL and i got stuff running by manually setup a schemaparser and datafetchers. But I want to refactor and try out by implementing GraphQLQueryResolver to a class and controll my queries from there. I get it to work by making a new project, but with the same dependencies and should […]
0 I’m working on a simple GraphQL query that allows me to fetch a list of users. I want to be able to sort them through my request. I’m using Prisma as an ORM. As per the documentation, my service simply looks like this: /** * Find all users */ findAll({ skip, take, cursor, where, […]
0 I wanted to create a union named Tables, that holds all the other tables and the user can request the table accordingly. I get the error: You have asked for named object type ‘Tables’, but it’s not an object type but rather a ‘graphql.schema.GraohQLUnionType’ Here is my graphql schema: type Query{ getData: [Tables] } […]