0 I am using gql to run a query against a GraphQL API. I get this error: File "<path to poetry venv>/lib/python3.10/site-packages/aiohttp/http_writer.py", line 129, in write_headers buf = _serialize_headers(status_line, headers) File "aiohttp/_http_writer.pyx", line 132, in aiohttp._http_writer._serialize_headers File "aiohttp/_http_writer.pyx", line 116, in aiohttp._http_writer._safe_header ValueError: Newline or carriage return character detected in HTTP status message or header. […]
0 Learning graphql, cannot get mutation to work yet, get lost on the online examples. import express from ‘express’ import cors from ‘cors’ import { graphqlHTTP } from ‘express-graphql’ import { makeExecutableSchema } from ‘@graphql-tools/schema’ const app = express() const port = 4000 // In-memory data store const data = { warriors: [ { id: […]
0 Looking for a GraphQl query to search for a list of all commits when comparing between two branches on GitHub within a repository. For example, https://github.com/account-test/repo-test/compare/main…development will render all the commits, if any. How to get the list of all commits when comparing between two branches using the GitHub GraphQL API? I tried query […]
8 I’m currently using ApolloClient to connect to an AppSync GraphQL API. It all works perfectly for queries and mutations, but I’m having some trouble getting subscriptions to work. I’ve followed the Apollo docs and my App.js looks like this: import React from ‘react’; import ‘./App.css’; import { ApolloClient } from ‘apollo-client’; import { ApolloProvider […]
6 I am trying to create a query to Github GraphQL API that receive a list of repos as a parameter, and returns the info of those repositories in a single API call, does anyone know how to do that? Something like this (I know this doesn’t work) query myOrgRepos($repos: [String!]!) { search(query:””” repo in […]
1 I want to create my own website in the form of a blog using Spring Boot and GraphQL API, but I don’t understand how to connect the database to GraphQL. When making a request through /graphiql, it returns NULL. I would appreciate any help and advice. I am using PHPMAdmin as database interface. Leave […]
30 I am very new in GraphQL and trying to do a simple join query. My sample tables look like below: { phones: [ { id: 1, brand: ‘b1’, model: ‘Galaxy S9 Plus’, price: 1000, }, { id: 2, brand: ‘b2’, model: ‘OnePlus 6’, price: 900, }, ], brands: [ { id: ‘b1’, name: ‘Samsung’ […]
0 I am using the graphql-request library to fetch data froma GraphQL endpoint. The endpoint returns some information about a user, based on a certain token associated to that user. Here is the type I’ve defined: export type PlayerInfo = { country: string, name: string|undefined, email: string, id: string, } Here are the two approaches […]
0 I need to create a session for Stripe Checkout. According to Stripe Checkout Docs: Add an endpoint on your server that creates a Checkout Session. A Checkout Session controls what your customer sees in the Stripe-hosted payment page such as line items, the order amount and currency, and acceptable payment methods. Return the Checkout […]
0 Hello i want to use this "https://studio.apollographql.com/public/star-wars-swapi/variant/current/home" star wars api, but when i want to download scheme from terminal i take this error. Here my gradle app module; plugins { id("com.android.application") id("org.jetbrains.kotlin.android") id("com.apollographql.apollo3") version "3.8.2" id("com.google.dagger.hilt.android") kotlin("kapt") id("androidx.navigation.safeargs.kotlin") } apollo { service("service") { packageName.set("com.softcross.starwars") } } android { namespace = "com.softcross.starwars" compileSdk = 34 […]