0 Context: I have a custom component ( autocomplete with list of options from external api ) that allows me to select an option based on an API request. After the selection, the body of the option becomes part of the structure and looks like this (where ‘type’ is a field of the custom component): […]
0 In many tutorials that I have read, the most common way of using graphql resolvers is like below. export const rootResolvers: IResolvers = { Query: { getUserById: async (root, { id }, context, info) => { return await getUserController(id); }, getUsers: async (root, args, context, info) => { return await getUsersController(); }, }, Mutation: […]
14 Most of the client require GraphQL client library to work with GraphQL API. I know that Tableau supports Rest APIs and wanted to understand if it is possible to use GraphQL based APIs with Tableau? graphql tableau-api Share Improve this question Follow edited Apr 27, 2021 at 10:06 Zoe♦ 27k2121 gold badges118118 silver badges148148 […]
-1 i am using nest-i18n package to use localization in my project but when translating the message i get the error Cannot read properties of undefined (reading ‘service’) Here is my code please help me to find out the exact error Note:- I have tried to add I18nValidationPipe as a provider in app module as […]
0 To avoid looking after a ghost, I prefer to check if the notion of a transaction can exist in GraphQL . Let’s say I have this: mutation save_changes { change01 { } change02 { } } Is there a possibility for change01 to be rolled back if change02 fails? .net-core graphql Share Follow asked […]
0 i try to login into my local graphql-server from unity. the mutation works from apollo-client and postman, but with the unity.webrequest i get 2 errors. the first one: Network error: HTTP/1.1 400 Bad Request UnityEngine.Debug:LogError (object) GraphApi/<LoginMutation>d__3:MoveNext () (at Assets/GraphApi.cs:61) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) and the second: Response body: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> […]
0 I am writing an API to fetch data from sql db(about 120+ tables). I have generated model class files automatically. Is there any automatic way to generate Service and Query class files? Right now I am writing these IService and class files. enter image description here enter image description here .net api asp.net-core graphql […]
1 I’m using the FXHash API to access listings with this query: query Listings($sort: ListingsSortInput) { listings(sort: $sort) { amount createdAt price issuer { name } objkt { name } } } $options = ‘{ "sort": { "createdAt": "DESC" } }’; I’d like to use the query above in PHP with the sort by createdAt […]
0 Would it be possible to somehow restrict some fields from being returned in a graph ql method, bur return them in another considering they both return the same object ? For example in the following methods i would like to restrict the field UserDto.birthday from being able to be queried in the second method. […]
0 I’ve an Django Model field with BigInt type, How can i map this in graphql schema, is there anything available like BigInt like Int type in Graphql? I’m using graphene library FYI My Schema: type MyModelObject { complaintId: BigInt createdBy: User! complaintNumber: String! } I got below warning/error in IDE The field type ‘BigInt’ […]