0 Certainly, here’s a possible Stack Overflow question you could use to get help with your issue: Title: Issue with GraphQL and TypeORM – Fetching Products with Images Description: I’m working on a GraphQL API using TypeORM as the ORM to interact with my PostgreSQL database. I’m currently facing an issue when trying to fetch […]
0 I want to normalize (i.e. flatten nested elements) my graphql’s local cache for efficiency reasons (otherwise a change in a nested item would redraw all components). My understanding was that Apollo would automatically normalize the cache… but apparently it seems like I misunderstood. Indeed, if I do: const IS_LOGGED_IN = gql` query IsUserLoggedIn { […]
0 When I start my project I got this error. How can I fix this problem. I am trying to use Graphql without Apollo SDK. Error: Failed to initialize Amplify with ConfigurationError: AWSS3StoragePlugin.AWSS3StoragePlugin cannot be added after Amplify.configure(). Recovery suggestion: Do not add plugins after calling Amplify.configure(). /Users/ufukkosker/Library/Developer/Xcode/DerivedData/ArtApp-xxxxxxxhzyxxxxx/SourcePackages/checkouts/amplify-swift/Amplify/Categories/DataStore/DataStoreCategory.swift:21: Fatal error: DataStore category is not configured. […]
0 I’m working on a project where I’ve created a backend script to handle GraphQL requests. I have a file called company.graphql that contains a query to retrieve information about a company and its related quotes. Here’s a snippet of the script query Companie($id: String!) { companie(id: $id) { attachmentId companieQuotes { attachmentId } } […]
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 […]