20,881 questions
0
votes
0
answers
24
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": {},
"...
1
vote
1
answer
81
views
+500
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 ...
-4
votes
0
answers
59
views
Unifying userErrors handling in Apollo Client with repository pattern [closed]
In our team, we are migrating from a REST API to GraphQL. GraphQL mutations return two types of errors:
Top-level errors
Domain-specific userErrors
We use the repository pattern to abstract API ...
0
votes
1
answer
36
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
34
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
55
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
41
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
70
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
65
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
121
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
57
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
65
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
21
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
49
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
31
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 ...