Tag: graphql
-
Hotchocolate Filter by BsonExtraElements
0 We have next entity: public class Product { public Guid Id { get; set; } public string Name { get; set; } = string.Empty; [BsonExtraElements] public Dictionary<string, object?> AdditionalData { get; set; } = new(); } This entity can have many dynamic data that can be stored inside AdditionalData property. Using attribute BsonExtraElements we…
-
Apollo parse exception in Android
1 Thanks in advance for help me. In my previous code GraphQL code was working but we want to migrate the Aws Amplify when we added the Amplify after words i am getting the data in interceptor but after that getting exception- "com.apollographql.apollo.exception.ApolloParseException: Failed to parse http response" "Parameter specified as non null is null…
-
Spring GraphQLmultiple schemas with Query per file
1 with Spring-GraphQl if I have following two schemas in the resources/graphql folder: schema1: type Query { bookById(id: ID): Book } type Book { id: ID name: String pageCount: Int author: Author } type Author { id: ID firstName: String lastName: String } schema2: type Query { personByName(name: String): Person } type Person { id:…
-
Mutation for nested object
15 I’m trying to implement GraphQL mutation for a "complex" object. Let’s say we have a Contact with three fields: firstName, lastName and address, which is object with one field street: Here is my python scheme implementation: class Address(graphene.ObjectType): street = graphene.String(description=’Street Name’) class AddressInput(graphene.InputObjectType): street = graphene.String(description=’Street Name’, required=True) class Contact(graphene.ObjectType): first_name = graphene.String(description=’First…
-
Using GraphQL to list all tags of a FFmpeg and search for releases
0 I’m trying to use GraphQL to get all tags of FFmpeg and later get the downloadUrl of each tag release. In the GraphQL Explorer, I used the following query: query { repository(owner: "FFmpeg", name: "FFmpeg") { refs(refPrefix: "refs/tags/", last: 100) { nodes { repository { releases(last: 100, orderBy: { field: CREATED_AT, direction: DESC}) {…
-
Should I use REST or GraphQL for file upload?
0 I have a GraphQL API, but I have doubts about whether to file upload in a graphql mutation or do it in a REST endpoint, I know that it can be done in both ways. I have read that for file uploading the ideal is to have a REST endpoint instead of a mutation.…
-
Rails graphql-batch: Dependent fields that use loaders
0 I have a Rails 7 GraphQL API, and I’m using the graphql-batch custom loaders to handle some n+1 query issues. In my GraphQL type definition, I have two fields, has_upcoming_schedule and has_available_spot. I want to modify the has_available_spot field so that it returns nil unless there are upcoming schedules. Only if the program has…
-
How to upload file using graphql-client?
0 How can I make a mutation call from a client and upload a file? I can do it in the editor (screen) But I cannot figure out how to make the same from a client var request = new GraphQLRequest { Query = query, Variables = new { id = "id" }, }; var…
-
Are graphql codegen types correct
0 I’m trying to create a simple next app with typescript using Strapi as a headless CMS. I just want to use Strapi and graphql with typescript to show something in the next app. In Strapi I simply have a Color Content type with two colors, red and blue I have graphql set up in…