Tag: graphql
-
How to avoid manual inlining inside LINQ query to use as an expression and convert to SQL
0 I am trying to do some projections in LINQ to convert to DTOs. The goal is to do it with expressions so that it is translated directly to SQL. It works perfectly if I do everything inlined like this : return workHeader.Select(x => new WorkHeaderDto { Id = x.Id, StartDate = x.Works.Min(w => w.StartDate),…
-
How to query _entities in Apollo Router?
0 While resolving GraphQL request, Apollo Router makes requests that include field _entities(representations: $representations) to internal services. However, when trying to issue the same query to externally available Apollo Router, I get an error parsing error: cannot query field ‘_entities’ on type ‘Query’ So, internal service resolves _entities just fine, however Apollo Router return above…
-
Apollo client modify.cache after receiving data from the subscription sometimes the cache does not update with new data
0 I am updating the real-time status of the product data with a subscription. Here is my code useProductSubscription({ varibales: { ids: productIds }, onData: ({ data }) => { const dataUpdated = data.productUpdated; if (!dataUpdated) return; const { productId, status } = dataUpdated; cache.modify({ id: cache.indentify({ __typename: ‘Product’, id: productId, }), fields: { status:…
-
How to call multiple mutations at the same time?
1 I have an array of ids, and I created a mutation that allow me to delete an item using only 1 id. Is there any way to call this mutation multiple times using Relay.Store.commitUpdate or this.props.relay.commitUpdate ? graphql relayjs Share Improve this question Follow edited Aug 11, 2017 at 1:11 jonathancardoso 11.8k77 gold badges5353…
-
Can’t autowire GraphQlTester
1 My current dependency set-up for demo api: dependencies { implementation ‘org.springframework.boot:spring-boot-starter-graphql:2.7.2-SNAPSHOT’ implementation ‘org.springframework.boot:spring-boot-starter-web’ testImplementation ‘org.springframework.boot:spring-boot-starter-test:2.7.2-SNAPSHOT’ testImplementation ‘org.springframework:spring-webflux’ testImplementation ‘org.springframework.graphql:spring-graphql-test:1.0.0’ compileOnly ‘org.projectlombok:lombok’ annotationProcessor ‘org.projectlombok:lombok’ } Test class: import com.example.demo.dao.ProfileDao; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.graphql.GraphQlTest; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.graphql.test.tester.GraphQlTester; import static org.springframework.test.util.AssertionErrors.assertNotNull; @GraphQlTest //@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) class DemoApplicationTests { @Autowired GraphQlTester graphQlTester; @MockBean…
-
Alternatives to AWS Amplify DataStore with offline capabilities for GraphQL
1 I’ve developed a project using AWS Amplify and DataStore. It was a requirement that the app works offline, because most of my users are travelling in areas with poor or no signal. DataStore seemed like a perfect solution, but it has given me far too many problems. Performance is awful when dealing with more…
-
Node JS Developer 46154 – PRIMUS Global Services Inc., – Hoboken, NJ
PRIMUS Global Services Inc., Hoboken, NJ $$50 – $55/hr Contract: W2, 7 month(s) Work from home Skills Typescript node GraphQL Job Description We have an immediate contract to hire opportunity with one of our key clients for a position of Node JS Developer, to work in multiple locations (Bentonville, AR; Dallas, TX; Sunnyvale, CA; Atlanta,…
-
Data Engineer/Lead – Exatech Inc – Atlanta, GA
Exatech Inc Atlanta, GA Accepts corp to corp applications, Contract: Independent, W2 Skills Aws Lambda GitHub DynamoDB BitBucket GraphQL pytest Job Description Hello , This is Joseph from Exatech Inc. I have an urgent opening of Data Engineer/Lead in Atlanta, GA || Onsite Role. Role: Data Engineer/Lead Location: Atlanta, GA ( onsite ) Duration: 12+…