0 I’m using @nestjs/graphql to build graphql API. I have the following object @ObjectType(‘Round’) export class RoundDto { @Field(() => GraphQLInt) round: number; @Field(() => [[GraphQLString]]) teams: Nullable<[string, string]>[]; } How Can I declare the teams field to return mixed values of string and null? Do I need to write own scalar for it? I’m […]
0 I am trying to build an app that uses GraphQL with the graphql-flutter package and with Blocs. I generated my graphql classes with the graphql_codegen package. In this app a list of events (the ‘History’) is shown. A few items are loaded, and after this ‘infinitive scroll’ will execute the ‘fetch more’ calls. The […]
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 […]
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 […]
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: […]
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: [ […]
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 […]
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 […]
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 […]