0 I am reading through this page: https://the-guild.dev/graphql/scalars/docs/quick-start It explains how to get pre-built graphql scalars. The examples on the page about how to use these scalars, seem to be using a code-first approach to building a schema. I am not sure how to use these scalars with the SDL-first approach where I have a […]
1 In my NestJS project I’m creating a GraphQL endpoint for a service that returns a dictonary object: { [key: number]: MyDataDto } In my .interfaces.ts file I would like to have something like: interface ArrayAsObject<T> { [key: number]: T } @ObjectType() export class MyDataDtoAsDictionary implements ArrayAsObject<MyDataDto> { @Field(() => MyDataDto) [key: number]: MyDataDto } […]
0 Using https://github.com/shurcooL/githubv4 and I’m really struggling to pull back a specific Release for a gh repo. The below code block keeps returning nothing when there is a v3 release: var releaseQ struct { Repository struct { Release struct { Author githubv4.String } `graphql:"release(tagName:$tagName)"` } `graphql:"repository(owner:$repositoryOwner,name:$repositoryName)"` } variables = map[string]interface{}{ "repositoryOwner": githubv4.String("jacobtomlinson"), "repositoryName": githubv4.String("gha-find-replace"), "tagName": […]
0 I have a graphql query that returns a list of pullup bar objects. Query: query PullUpBarsByDate($userID: String) { PullUpBarsByDate( type: "PullUpBar" sortDirection: DESC ) { items { id lat lng userID } } } Returns something like this: [ { id: "rf6zrd1prm", lat: 63.50235889533083, lng: 28.426290788320724, }, { id: "y80ymnlgzi7", lat: 62.5654380797649, lng: 17.338090077030582, […]
0 I’m following an official guide for linting graphql queries in my components. Updating eslint config like guide says causes following error in all my queries: How do I fix it? graphql eslint gatsby Share Improve this question Follow asked 2 hours ago jeron-diovisjeron-diovis 79711 gold badge88 silver badges2020 bronze badges Load 7 more related […]
-4 Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 51 mins ago. Improve this question I am trying to create a Shopify order discount app. I have installed the […]
1 I have multiple GraphQL microservices (subgraphs, using ApolloFederationDriver) with a GraphQL gateway (using ApolloGatewayDriver) I have a really strange bug since I’ve upgraded my GraphQL microservices and gateway to use @apollo/server (@nestjs/graphql@11 + @nestjs/apollo@11) : I have an error when my subgraphs are composed telling me that subgraph A has a non shareable field […]
0 I am trying to access the directives of each field’s type of intercepted types using HotChocolate v14. Why am I getting TypeInitializationException when trying to access ObjectType’s Directives in my TypeInterceptor.OnAfterCompleteName? I also tried OnAfterCompleteType but the same happens. internal sealed class ZajilTypeInterceptor : TypeInterceptor { public override void OnAfterCompleteName(ITypeCompletionContext cc, DefinitionBase td) { […]
0 Getting the Error CS0029 Cannot implicitly convert type ‘System.Threading.Tasks.Task<peMove.Maui.Models.ErpPart>’ to ‘peMove.Maui.Models.ErpPart’. It can’t convert the ErpPart type to an ErpPart type?? This is probably fairly straight forward but new to C# (VB coder) and async operations. I have been struggling with a lot and am just not seeing it (or burnt out). MainPage.xmal.cs async […]
1 This is what my schema looks like: extend type Mutation { createMutation( my_id: ID! my_data: input_data ): some_output input input_data { some_key: ID! file : Upload! } This is how I am defining my operations in POSTMAN { "query": "mutation CreateMutation($my_id: ID! , $my_data: [input_data]) { createMutation(my_id: $my_id, my_data : $my_data) { some_key}}", "variables": […]