20,868 questions
0
votes
1
answer
33
views
Langchain4j and Quarkus AI Services - Not using annotated @Tool to call remote GraphQL API
I have a question about Quarkus Langchain4j.
I have made this Quarkus (Java 25) project with the purpose of exposing an API that receives a search text, processes it with an "extractor” AI ...
Tooling
0
votes
0
replies
24
views
Easy mappings for GraphQL requests without using the GraphQL Client
I am trying to send requests to an API that uses GraphQL for its data filtering. The problem I am having that I need to build each request manually through a string interpolation which is easier said ...
0
votes
1
answer
31
views
AWS Amplify Long type to Int64 with Swift and GraphQL
I have issue where I cannot map Long type in Swift.
E.g. schema.graphql
scalar Long
input TableLongFilterInput {
between: [Long]
contains: Long
eq: Long
ge: Long
gt: Long
le: Long
lt: ...
0
votes
0
answers
25
views
How do I get nested Hot Chocolate graphql data loaders to batch properly?
I have a graphQL query that looks like this:
query {
vehiclesByIds(ids: 1,2,3,4,5...) {
id
options {
optionId
name
adCopy {
copyType
copyText
}
}
...
0
votes
2
answers
174
views
Shopify integration with Delphi
I am trying to use the Shopify GraphQL Admin API from Delphi. Came up with the following code:
procedure TestShopify;
var
Client: TRESTClient;
Request: TRESTRequest;
Response: TRESTResponse;
...
1
vote
0
answers
44
views
How to add Authorization: Bearer <token> header to Strawberry Shake client after login in Blazor Server?
I'm using Blazor Server with Strawberry Shake 15.1.10.0 to consume a GraphQL API.
Here's the flow:
User logs in via a regular API call (SignInAsync(username, password))
The API returns a JWT token (...
0
votes
0
answers
27
views
Client of Amplify Gen 2 is not being properly generated for subscription
Logging const client = generateClient<Schema>(); results in the following, which shows that the client is improperly generated:
{
"models": {},
"enums": {},
"...
3
votes
2
answers
191
views
How to Fetch all children, for all parents in single API call?
If a am querying for several parent objects and each of those parents has several child objects like so:
type ParentTest {
id: Int
name: String
children: [ChildTest]
childIds: [Int]
}
type ...
0
votes
1
answer
45
views
Rails 7 / GraphQL-Ruby: ActionCable subscription always 403 Forbidden when connecting with JWT
Problem Description
I'm trying to set up GraphQL subscriptions in a Rails 7 backend using ActionCable. The subscription works from the Rails console — I can broadcast events and they are received. ...
0
votes
1
answer
45
views
Unknown type FieldUnion for field fields. Did you forget to add the @model directive. Grapghql
getting below error during amplify publish .
Unknown type FieldUnion for field fields. Did you forget to add the @model directive
the code:
FieldUnion = KeyValueField | AnotherFieldType
type MyObject ...
0
votes
0
answers
63
views
How do I define a bridge table/many-to-many relationship in my schema for use in a Spring JPA BE?
I'm working on a personal project to get better understanding of BE/architecture/how everything ties together, but I'm having trouble finding examples that show the full picture. Right now, I'm ...
0
votes
1
answer
61
views
My graphQL query is returning same values of 'Yoast SEO fields' for all my posts in wordpress graphQL IDE?
I am using WPGraphQL(v2.3.8), Add WPGraphQL SEO(v5.0.0) and WP Gatsby(v2.3.3) plugins in wordpress.
graphQL query-
{
posts {
nodes {
id
title
seo {
title # yoast seo ...
1
vote
0
answers
82
views
Convert String to Date for Graphql in spring boot 3.5
I am migrating a Spring Boot application from version 2.6.6 to 3.5.0, and upgrading the JDK from 17 to 21.
Previously, I was using the graphql-kickstart dependency, but I have replaced it with the ...
0
votes
0
answers
149
views
How can I reliably scrape the Meta Ads Library for the latest ad launches?
I’m building a scraper to monitor the Meta (Facebook) Ads Library for new ads as soon as they start running.
From inspecting network requests, I see that the Ads Library web app uses a GraphQL ...
0
votes
1
answer
188
views
Assigning Github Issue to Copilot Fails using GraphQL
I'm working in a python based repo and I'm trying to develop a flow where I look for Asana tasks in a specific project and when new ones are found, create a github issue for them and assign them to ...
0
votes
0
answers
61
views
graphql passport js how to get isAuthenticated() to work
My tech stack is node js, react, graphql, @apollo/server graphql-passport connect-mongodb. The authenticate from passport is working because I login and when I console log from the user resolver I get ...
1
vote
1
answer
75
views
GraphQL Queries with conditional nullable filters
I want to have a single query to take in a bool? Active parameter which could possibly be null.
Although, from experimenting I can either have a query which always excepts a value from Active OR just ...
0
votes
0
answers
26
views
Graphql Mesh - How to store to DB rather physical location
By using Graphql Mesh I am able to convert soap, rest, rpc into graphql queries/schemas but it is storing everything in yml file and schema files.
If I have 500 sources, saving all sources into yml ...
0
votes
0
answers
55
views
Graphql Fusion with Dataloader
I have been using data loader with stitching queries in hotchocolate v13. I recently migrated to v15 and had to introduce Fusion as stitching is no longer supported.
After the upgrade, the batch data ...
0
votes
1
answer
48
views
Using Hotchocolate Persisted Operation along with Fusion
I upgraded hotchocolate from V13 to V15 and realized that the query stitching is no longer supported and need to use Fusion package.
I am following these steps and everything is fine except that I am ...
1
vote
1
answer
108
views
How to sort @GraphQlRepository paginated results
I’m currently evaluating the potential use of Spring Boot GraphQL for future web projects. So far, I’ve had positive experiences with filtering, pagination, and selects/joins. However, I haven’t found ...
0
votes
0
answers
47
views
How to log graphql response time info?
I'm attempting to add some response-time information to the logs of our Quarkus components so we can easily pinpoint slow requests and do general profiling based on log records.
However, this seems to ...
0
votes
1
answer
66
views
How can I get GraphQL schema validation in VS Code?
I installed this GraphQL: Language Feature Support extension in VS Code, it's seems to be functioning, but it's missing some stuff, in the schema, it's not highlighting the errors, and it's shows the ...
1
vote
1
answer
219
views
Generated file uses skipToken import incorrectly in Next.js App Router
I’m using Apollo Client v4 (4.0.5) with Next.js App Router and GraphQL Code Generator (typescript-react-apollo) to generate TypeScript types and hooks for my GraphQL API.
Everything was working fine ...
1
vote
0
answers
90
views
Package subpath './express4' is not defined by "exports" error when trying to run a nestjs graphql
I'm trying to run a graphql server in nestjs. I get this error when trying to run this project.
Package subpath './express4' is not defined by "exports" in /Users/shehanniwanthaka/WORK/RND/...
0
votes
0
answers
45
views
I can't create my custom filter in HotChocolate 13.5.0, where can I view detailed documentation or code examples?
I'm trying to create my own filter for a specific type of data in hotchocolate.
I created a class from FilterInputType<MyType> and specified an additional field for filtering in it. For this ...
0
votes
0
answers
20
views
yarn graphql-codegen error " require() of ES Module Y from Y not supported"
I get error:
require() of ES Module D:\PROJEKTI\cvmds-client\node_modules\upper-case\dist\index.js from D:\PROJEKTI\cvmds-cl…
error Command failed with exit code 1.
This is package.json:
{
"...
0
votes
1
answer
80
views
How to query nested JSON fields in Weaviate?
I’m working with Weaviate, and I’ve indexed documents that contain nested JSON fields. A simplified example of one object:
{
"candidate_id": "123",
"details": {
&...
0
votes
0
answers
50
views
Springboot 2.2.5 Java8 not exposing GraphQL
My application runs on Java 8 and Springboot 2.2.5.RELEASE and I am using below dependencies to expose a GraphQL service.
<dependency>
<groupId>com.graphql-java-kickstart</...
1
vote
1
answer
57
views
Does GraphQL support dynamic field aliases based on input arguments?
In GraphQL, is there any way to alias the returned value using an input argument?
e.g. here:
query GetCurrencyRevenueAggregate(
$currency: String!
$startDate: timestamptz!
$endDate: timestamptz!
...
1
vote
1
answer
119
views
Graphql issue when I add a resolver to my nestjs project
I am working with monorepo, with backend nest.js, where I have integrated graphql
@Mutation(() => AuthResponse)
async registerLocal(
@Args('input', { type: () => RegisterInput }...
2
votes
0
answers
87
views
How to generate a typed Python SDK for a GraphQL API
I'm trying to set up a nice Python client for a GraphQL API managed by a separate team (in a different language): We want to provide useful type hints + autocomplete without introducing overly onerous ...
0
votes
0
answers
47
views
How do I use cookies for authentication when using ApolloClient and NextJS
I am working with a NextJS project that needs to access a graphql API. I am using the nextjs app router and am trying to follow the best practices outlined here https://github.com/apollographql/apollo-...
0
votes
1
answer
92
views
Cannot use GraphQLSchema [...] from another module or realm
I have this very persistent problem which is very strange to me. It actually happened in a larger project but I isolated it in a very minimal project setup and the error keeps happening, hopefully ...
0
votes
0
answers
86
views
IBM filenet graphql API - How to get all the documents associated with a VersionSeriesId
We are using IBM filenet as the content management system.
So there is a requirement to delete a file.
But I realised that a document can have multiple versions and each will have different documentId,...
3
votes
0
answers
82
views
Why can I not update the form data? [closed]
I want to create a form that creates a card that I can edit. Whenever I try to click on the edit button to update the card, the information that was made doesn't transfer over into the new screen. ...
-1
votes
1
answer
222
views
GraphQL Client Unauthorized (401) when using App Proxy route despite valid session
I'm building a Shopify app using the official @shopify/shopify-app-remix framework with PrismaSessionStorage.
In my App Proxy route, I try to send an authenticated Admin GraphQL request using an ...
-1
votes
1
answer
130
views
How to obtain full GraphQL specification without Introspection?
Let's say administrator is hosting a Wiki.js instance and can distribute GraphQL API access to authorized developers. Consdering that introspection is disabled, the developers cannot obtain the full ...
1
vote
0
answers
71
views
Typing Graphql using Sorbet
I'm trying to define the best way to work with graphql and sorbet typing.
I want to know how you solved the correlation between the graphql and the type checking of sorbet.
I didn't found posts on it.
...
0
votes
1
answer
25
views
OpenTripPlanner : enquire version and public transport data validity, expiry date etc
I am using my own local OTP server fed with GTFS data from a public transport agency. I download said data every month in order to catch updates (very rare) or to avoid the data expiring. That data is ...
0
votes
0
answers
27
views
GraphQL: from object diff to input type
With the traditional REST APIs it seems far easier to build a client side model that you can build the request body out of the box by just using the differences of an JS object that has been changed.
...
1
vote
1
answer
88
views
HotChocolate [UseSorting] / [UseFiltering] LinQ conflict with ValueObject
Using HotChocolate v15.1.8 with EF v9.0.7 and Mapster v7.4.0, I encounter a bug with [UseSorting] / [UseFiltering] LinQ conversions which appear invalid when applied to DDD ValueObject or EF complex ...
1
vote
1
answer
32
views
Not able to run search query on multiselect field in Sitecore
I'm running two APIs:
GetListOfPocketCardsWithoutCategory:
query for this is below:
query($after: String, $LimitPerPage : Int) {
categories: search(
where: {
AND: [
{
...
0
votes
0
answers
69
views
Join two subgraphs using Graphql Fusion
I am trying to get result when I query like below in fusion gateway, basically join of Product and Review like for each product get the review details for each product,I know Fusion is in .Net but I ...
0
votes
3
answers
120
views
Nx Monorepo NestJS GraphQL application generating the latest schema
I have an nx monorepo with a NestJS GraphQL application and it doesn't seem to be generating the latest schema from my Resolver class. I have a @Query and a @Mutation but only the @Query is being ...
0
votes
0
answers
16
views
Logging error when function fails in AWS Appsync
I was trying to understand where in stash are errors stored when a function fails in AppSync.
My resolver template looks like follows:
export function request(ctx) {
// performs some operation
return {...
0
votes
0
answers
22
views
Will a Hasura filter based on nested objects yield results even just one nested object satisfies the condition?
Given a query like this:
query GetUsersAndRevenues {
User_aggregate(
where: {
transactions: {timestamp: {_gte: 1743465600, _lte: 1751328000}}
}
) {
aggregate {
count(...
-2
votes
1
answer
33
views
Is there any tool that can auto-generate GraphQL fragments from GraphQL schemas? [closed]
Given a GraphQL entity like this:
type Action @entity(immutable: true) {
id: String!
subgraphId: BigInt!
block: BigInt!
chainId: BigInt!
from: Bytes!
hash: Bytes!
timestamp: BigInt!
...
0
votes
0
answers
23
views
Unable to set APIM GraphQL API context.operation.id separate for each query resolver
I have a requirement in GraphQL API in Azure APIM where I need to pass Operation name/ id as part of header when firing query which calls another API. Since this calling API needs operation name to ...
0
votes
0
answers
39
views
How can I make aws amplify uses iam authentication to query from appsync?
I am trying to build a graphql client to query/mutation on AWS appsync. I come up with the library aws-amplify. My appsync uses IAM authentication method. I created an IAM user in my AWS account and I ...