Questions tagged [graphql]
GraphQL is an API technology designed to describe the complex, nested data dependencies of modern web applications. It is often considered an alternative to SOAP or REST
graphql
21,121
questions
0
votes
0
answers
4
views
Java 21 Spring Boot 3.3.1 How to get GraphQlTester to use main/resources/graphql-documents/
I have a Java 21 Spring Boot 3.3.1 application. I have several GraphQL APIs, and I also need to send several GraphQL requests to other services. I also have GraphQlTester tests. However, I have ...
0
votes
0
answers
12
views
How to get graphql express server to run on ip address instead of localhost
I'm working on a project using react-native with expo and graphql in the frontend and nodejs with mongodb and graphql in the backend. Currently, I'm trying to test my project on a real device, but I ...
0
votes
0
answers
10
views
How to setup websocket connection in apolloserver and nextjs application?
Websocket connection to the apollo server gets failed
This is my route.ts in app/api folder
import { ApolloServer } from '@apollo/server';
import { makeExecutableSchema } from '@graphql-tools/schema';
...
0
votes
0
answers
8
views
I want to send parameters to a GraphQL query from my flutter application
I want to send parameters to a GraphQL query from my flutter application, but it doesn't work. I declared a variable and write to it when I select by which criteria I am going to sort the query.
Query ...
0
votes
0
answers
10
views
Subscriptions public on postgraphile
Currently I have a project that has a middleware where it checks that each subscription has in the request the jwt:
` if (config.graphileConfig?.subscriptions === true) {
// Subscriptions have ...
0
votes
0
answers
13
views
Slurp pages with useBackgroundQuery in Apollo Client
A component needs to fetch all data from a paginated GrapQl API. I'd like to use Suspend to suspend the component until all data has been fetched. Here's a query
query Get($first: Int!, $after: String)...
0
votes
0
answers
11
views
How to query multiple types in a GraphQL collection?
I have write below query in GraphQL but it returing error
query {
pageCollection(limit: 10) {
items {
contentSectionCollection(limit: 5) {
items {
heading
subSectionCollection(limit: ...
0
votes
0
answers
12
views
Finding a specific user's fork of a given repo
I'm trying to use the GitHub GraphQL API to solve the following problem. Suppose there is a repo alice/repo1 and another user bob. I want to find if bob has a fork of alice/repo1, and if so, what the ...
0
votes
0
answers
16
views
Graphql or rest in RT chat in a spa running on flask and react?
I have a react app using flask backend. I have changed from rest to grapgql now for user reg, login, auto. Also posting services and for the feed to GET the posts. I am going to implement a one-to-one ...
0
votes
0
answers
10
views
AppSheet with ApiGee data source as a proxy for existing GraphQL endpoint
I already have a GraphQL endpoint. I want to use data from this endpoint (for various queries known only at the stage of creating different AppSheet apps) as a source for different AppSheet apps. Can ...
1
vote
0
answers
24
views
How to properly perform dynamic filtering using graphql-java?
Assume that using the schema below, both the teams query and the members collection (from the Team type) are bound to data served by different services using BatchLoaders. Also, let's assume that ...
0
votes
1
answer
33
views
How can I write a HotChocolate middleware that acts after UseFiltering?
I am building a GraphQL interface in an existing dotnet webapi using HotChocolate v13.
I want to write a middleware in a field that has UseFiltering(), which as far as I know is a middleware as well.
...
1
vote
0
answers
22
views
Error 400 [no body] when trying to send a GraphQL Request with HttpSyncGraphQlClient in Spring Boot 3.3.1
I have a Java 21 Spring Boot 3.3.1 using MVC application. I used to send GraphQL requests with RestClient and just built the GraphQL body manually. Since I am using MVC, I could not use the ...
0
votes
0
answers
9
views
res.setHeader is not a function occurs when logging in to nestjs+graphql+Google
I am testing Google social login with nestjs and graphql.
However, an error res.setHeader is not a function appears.
This is the auth.module.ts file.
import { Module } from '@nestjs/common';
import {...
0
votes
0
answers
15
views
Next js- GraphQl Request is working in getStaticProps on component level but in component itself it's throwing CORS error on localhost [closed]
GraphQl Request is working in getStaticProps on component level but in component itself it's throwing CORS error on localhost. It is the same request, only in different place.
I know that ...