Category "graphql"

can a minimalistic JSON+HTTP API be integrated into GraphQL mesh?

I have some API's that are minimalistic JSON+HTTP and do not implement any specs like OpenAPI or JSON-schema. If possible, I would like to integrate the API's i

Hasura inherited role permission inconsistency

I am trying to define two roles in Hasura: role_1: In my_table, can update: column_A and column_B role_2: In my_table, can update: column_C I want an end user t

"Not Authorized to access " error on create mutation + GraphQL

I'm running the below GraphQL query to create data on dynamodb table, but gets the response with "Not Authorized to access createClient on type Client" Why this

TypeError: Cannot read properties of undefined (reading 'document')

I was using qraphql (JavaScript graphql-request library) in a project and ran into a typeError. Here's the code: import { request, gql } from 'graphql-request'

Vue-apollo subscriptions not working as expected

I am working on vue-apollo and was able to use mutations and queries, but am facing issue using subscriptions. The apollo-express server with subscriptions is w

How to create a GraphQL typed SDK from a Typescript schema object?

I have a code-first GraphQL API in which the GraphQLSchema is created like so: import { GraphQLSchema } from 'graphql'; import { mutationType } from './mutation

BitQuery wrong data/not real time

Hi I started playing with BitQuery graphql to see if it would help me with querying blockchain data. I love the idea of single API for most of the blockchains.

Gatsby v4 - Joining Author Details Into a Post [closed]

Using Gatsby v4. In my blog posts there is a field author. There is a separate authors file which includes details of the blog post authors -

set session variable for Hasura on Query in apollo client, currently getting error "missing session variable: "x-hasura-a"

I'm currently writing a next.js app. I have got a query in apollo graphql, that I want to attach a variable to, in the header of the request. The variable is ca

Can i extend graphql fragments?

For example, i have the next query for the paragraph: query ParagraphText { field_title field_body field_subtitle field_image field_button } And i us

unable to install express-graphql

I am trying to install express-graphql but getting this error.Please help npm install --save express-graphql npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to

How to load image in Gatsby GraphQL query

I have small SQLite database with products, that have relative paths to images. I'd like to include these images to my page. I'm trying to use this query: query

vue filtering method how it works

Here's the some code i try what I did deleteajobewith_events(event){ const data =event.store.readQuery({ query: ClientJobesList, varia

Using the Uniswap v3 Subgraph or other options, how to find liquidity pools containing a given token symbol?

I am trying to get a list of all pools containing a token symbol with Uniswap v3 for arbitrage opportunities. For example, if I want to find all pools containi

Using the Uniswap v3 Subgraph or other options, how to find liquidity pools containing a given token symbol?

I am trying to get a list of all pools containing a token symbol with Uniswap v3 for arbitrage opportunities. For example, if I want to find all pools containi

Graphene throwing input error for Pydantic models with discriminator while generating Input object schema

I am using pydantic validations for my requirements and it uses discriminator. I am writing GraphQL APIs and want to convert those pydantic models into graphene

Python - pagination "after" parameter doesnt work in query

Im making a code to get data from pipefy API and the pagination isn't working out for me headers = { "authorization": 'Bearer TOKEN', "content-type": "a

GraphQL Request in Pytho

I don't know how to solve this problem i'm trying a long time now but i'm stuck. I've tried different Libarys for GraphQL requests but nothing is working so tha

get Forbidden resource even when the requested user is admin

Middleware is used to protect the resolver. The middleware checks the role of user and despite the right role of the requested user I cannot access listUser que

GraphQL Subscriptions not working on Firefox - Error 400 bad Request

I have a Frontend app that is built in React and it is connected to a GraphQL backend using Apollo Client. Queries and Mutations are working fine in all browser