Tag: graphql
-
Using map on data from graphql
0 I have a nextjs app using typescript and a Strapi backend with graphql I’m trying to simple get the graphql from strapi and display it in the react app. I’m trying to display a list of font names. In react I have this query, this works in the playground import { gql } from…
-
Issue with GraphQL and TypeORM – Fetching Products with Images
0 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 products along with their associated images using GraphQL queries. I have two tables: products and images. Each product can have multiple images associated with it. The images table…
-
Apollo Router request to subgraph
0 How can I make my apollo router make GET requests to subgraph instead of POST. Based on my benchmark, GET outperforms POST. But it only happen between client & the router. I want to improve the network performance by making GET requests from router to subgraph instead of POST. federation_version: =2.0.1 subgraphs: product: method:…
-
Nest can’t resolve dependencies of the MessageResolver (?, PubSub)
0 message.module.ts: import { Module, forwardRef } from ‘@nestjs/common’; import { MessageResolver } from ‘./message.resolver’; import { MessageService } from ‘./message.service’; import { MongooseModule } from ‘@nestjs/mongoose’; import { Message, MessageSchema } from ‘./models/message.model’; import { UserModule } from ‘src/user/user.module’; import { GroupModule } from ‘src/group/group.module’; import { PubSub } from ‘graphql-subscriptions’; @Module({ imports: […
-
How can graphQl update its won cache in reaction to data mutations triggered by a different user?
0 Here is a scenario: User A is friends with user B. User C is an admin. When user A queries the list of his friends, the list comes back, and user B is one of its members. This list is cached and the following queries are read from the cache. Now, let’s say the…
-
Issue with Accessing GraphQL Data Before Authentication on Android using Amplify
0 Question: Hello everyone, I’m relatively new to Amplify and currently working on a mobile application using React Native. The app is being developed for both Android and iOS platforms. I’ve integrated Amplify Auth and a GraphQL API into the app. While I’m able to access GraphQL data before authentication on iOS successfully, I’m encountering…
-
How to convert the data retrieved by GraphQL + Relay to normal React state?
0 Example from the documentation: import type {AppQueryType} from ‘AppQueryType.graphql’; const React = require(‘React’); const {graphql, useQueryLoader, usePreloadedQuery} = require(‘react-relay’); const AppQuery = graphql` query AppQuery($id: ID!) { user(id: $id) { name } } `; type Props = { initialQueryRef: PreloadedQuery<AppQueryType>, }; function NameLoader(props) { const [queryReference, loadQuery] = useQueryLoader( AppQuery, props.initialQueryRef, /* e.g. provided…
-
GraphQL products query Access Denied
3 I’m a little stuck with one GraphQL query. { collectionByHandle(handle:”price”) { products(first: 16, sortKey:PRICE, query:”title:Bracelet”){ edges { cursor node { title } } } } } The error comes from the query parameter which is not supported on Custom collection, but it is on a Smart one. query: String This field is only used…
-
Vue Apollo Composable useQuery Ignores Reactive Filter Variable Change Even Though It Triggers a Refetch
0 I am using Vue Apollo Composable with useQuery to perform a GraphQL query. My pagination works as expected; however, I am facing an issue with my filters.verified variable. Although I see the variable toggling in the client-side (I’m logging it), the network request still shows the initial value as true. Problem: When I click…