Tag: graphql
-
How can I use django-filter’s DateTimeFromToRangeFilter with Graphene?
0 I’m attempting to use an instance of django-filter’s DateTimeFromToRangeFilter in conjunction with a custom FilterSet. However, this does not work when I attempt to do the following: class CustomFilterSet(FilterSet): modified = django_filters.IsoDateTimeFromToRangeFilter() class Meta: fields = "__all__" model = Custom This does not result in additional fields or annotations being created, like I’d expect…
-
How to use stored procedure in GraphQL using HotChocolate
0 I am currently working on a legacy application which is built on the .NET framework and uses a MySQL database. We are migrating the application to GraphQL and .NET Core. We need to use the existing stored procedures. Because, the useridDB-role is passed to the stored procedure to filter the data at the database…
-
how to fetch on required attribute from database request coming from graphql
0 query Languages { languages { code name } How can I retrieve specific columns from a database in response to a user’s request using Graph QL? MySQL query => select code, name from languages; i am new to Graph QL language and unable find any solution online graphql Share Follow asked 1 hour ago…
-
Authenticating Graphql using cognito user pool
0 I need help in connecting to Graphql(AWS AppSync) API using Amazon Cognito pool using Javascript/Nodejs. I am able to connect to Graphql using API key (API_KEY) as the authentication mechanism. But I need to change the Authentication mechanism to using Cognito pool (AMAZON_COGNITO_USER_POOLS). I know that we need to collect the JWT token and…
-
WikiJs GraphQl select content type when creating a page
0 Hello I am currently having the problem that if I try to create a page with the GraphQl Api for WikiJs that the content type is always text when I would like it to be markdown. Does someone know what I a doing wrong or what I need to change in my query. Below…
-
I am getting a required error using graphql tools
3 I am building a gql server application using apollo server. When I try to load my .graphql files using import { loadFilesSync } from ‘@graphql-tools/load-files’, this works very well, but when I load my resolver files, i get an error node:internal/errors:464 ErrorCaptureStackTrace(err); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /userpath/index.js from /userpath/server-gql/noop.js not supported.…
-
Netflix DGS configuration dgs.graphql.graphiql.enabled=true is not working
0 Netflix DGS configuration dgs.graphql.graphiql.enabled=true is not working. I have also added this config – dgs.graphql.graphiql.path=/graphiql I have a spring boot application in maven and I have implemented my graphQL APIs using Netflix DGS. APIs are working fine using postman but when I try to enable graphiql by hitting /graphiql end point, it gives me…
-
Apollo server return protected field when performing login mutation
0 I have a problem with returning protected fields from PersonType in the login mutation. The idea is to set the cookie or session, and then return the user with some protected fields. Server: const server = new ApolloServer({ schema, context: async ({ req, res }: { req: Request; res: Response }) => { const…
-
hasura-v2.xx gives graphql-engine-1 exited with code 1 on `hasura metadata track …`
0 I’m trying to get started with Hasura. So here is my docker-compose.yml file: version: "3.6" services: postgres: image: postgres:15 restart: always volumes: – db_data:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: postgrespassword graphql-engine: build: context: . dockerfile: DockerfileHasura # command: /bin/sh -c ‘hasura metadata track –all-tables –all-relationships –schema public –endpoint https://graphql-engine:8080 && exec graphql-engine serve’ command: /bin/sh -c ‘exec…