0 TL;DR: In Apollo client, how can I create client mutations usable with useMutation now that local resolvers are removed? (useful for debug, abstraction, reusability…) Long version: I’m learning how to use Apollo client to deal with a local nested state. For now, I’m using something like: client.writeQuery({ query: IS_LOGGED_IN, data: { isLoggedIn: false, }, […]
0 I’m currently working on a small Nest.js application where I want to create a GraphQL query to retrieve an array of books. However, I’m encountering an issue where I’m not getting the expected response. I’ve provided the relevant code snippets below. Can someone please help me identify what I might be doing wrong? src/books/books.dto.ts […]
0 I’m trying to put together a more complex stuff than Getting started guide with HotChocolate and I hit a wall, and the documentation does not help. I have multiple questions: What I’m doing wrong here? I went through all the examples they have and it seems I’m doing the right thing, but the error […]
0 I’ve decided to integrate Firebase into GraphQL and I am passing firestore as a context value when creating ApolloServer however when I run the loginUser query I get an empty object in my console: {} I’ve gone through the GraphQL context documentation and have attempted to pass the object different ways (passing context via […]
0 I use nestjs and graphql save data into postgres. When i save data it save success on my database. Here dto input @InputType() export class CreateShop { //some field @Field(() => String, { name: ‘opening_time’ }) openingTime?: Timestamp; @Field(() => String, { name: ‘closing_time’ }) closingTime?: Timestamp; } My data save success on database […]
0 I’m trying to create a post and attach tags to it. I’m also trying to create a post and create a tag that will be associated with the post. I followed the documentation but in the end it doesn’t work. https://lighthouse-php.com/6/eloquent/nested-mutations.html#belongstomany I get an sql error when trying to create a Post and attach […]
0 I am creating a GitHub Action workflow which will call a GitHub CLI API request using GraphQL. This gh api graphql response is –paginate and returns JSON Lines (ndjson). I created the GraphQL and jq queries, and I am close to the desired output; however, my jq query needs to be modified and I […]
3 I’m using the Contentful GraphQL API to fetch a collection of items, in this example football clubs. query Clubs($limit: Int!, $skip: Int!) { clubCollection(limit: $limit, skip: $skip) { total items { name description } } } The structure of the response is: clubCollection: { items: [{ … array of all the clubs }] } […]
22 I’ve read cppreference.com’s implicit conversion: Integral promotion: prvalues of small integral types (such as char) may be converted to prvalues of larger integral types (such as int). […] Note that all other conversions are not promotions; for example, overload resolution chooses char -> int (promotion) over char -> short (conversion). The conversion from char […]
0 Here’s the relevant schema definitions: type Course implements GrApp { id: ID! term_id: ID! term_name: String type: String! name: String! data: AWSJSON course_info: AWSJSON } interface GrApp { id: ID! type: String! name: String! data: AWSJSON } input TableGrAppFilterInput { id: TableIDFilterInput type: TableStringFilterInput name: TableStringFilterInput } input TableIDFilterInput { ne: ID eq: ID […]