11 I recently discovered Java records, and it was amazing to learn about their existence and purpose. However, I began to wonder if they are essentially just classes behind the scenes. Does this mean that during compilation, they get converted into an explicit class with final private fields, a public constructor, and the necessary getters? […]
0 I’m looking for a method to dynamically generate Python functions that correspond to the queries and mutations defined in a GraphQL schema. After obtaining the schema, I want a system that can automatically create these functions, so I can simply import the generated code into my Python project and call the functions with the […]
0 I am trying to pass header in @apollo/client useQueryQuery but it is not getting passed. Click on login button will call loginRequest. Its a REST call which is using Graphql. IMPORTANT -> in loginRequest is getting called at many places, some places need to pass the header and some place not. Below I added […]
0 type oPlayer @key(fields: "id") @key(fields: "name"){ id:ID name: String } extend type oPlayer @key(fields: "name") @key(fields: "PlayerId") { name: String @external PlayerId: ID @external } I am tring to resolve that field using PlayerId field with id but I am not able get data in referance resolver How to provide alias to "PlayerId:id" so […]
0 I’m using React Admin with GraphQL and ra-data-hasura. My problem is that the Introspection Query is made only when the app starts (user has role guest before login) and after login, the Introspection Query does not refetch, so I get errors for the resources that the logged in user should have access to. After […]
3 Either via using GraphQL or the Rest API, I create a cart for a customer (Either by sending customer_id in REST, or x-bc-customer-id in GraphQL). GraphQL: Create customer Impersonation Token and Create Cart Note: There’s also an Assign Cart to Customer mutation, but it only took a cart and didn’t do anything. REST: Create […]
22 I’m trying to combine multiple GraphQL queries into one query using JavaScript. I am looking for something like this: let query3 = mergeQueries(query1, query2); We won’t know beforehand which queries will be combined. Suppose I have queries like this: input query1: { post(id: 1234) { title description } } input query2: { post(id: 1234) […]
0 I am trying to get a test file (ian wheeler ms.png) from a SharePoint online document library in the sub folder General to download to a local folder of C:Temp using this question and answer microsoft-graph-download-file-via-rest-api I am able to make a call in postman to return my file contents to postman. The call […]
0 I’m learning GraphQL and decided to develop a small application using GraphQL, Spring Boot 3.1.3, Java 20, and the spring-boot-starter-graphql library. One of the main features of GraphQL is the ability to specify which fields are needed. I found a simple solution to implement this in Java using a field fetcher by checking if […]
7 I have a string similar to the following my_string <- "apple,banana,orange," And I want to split by , to produce the output: list(c(‘apple’, ‘banana’, ‘orange’, "")) I thought strsplit would accomplish this but it treats the trailing ‘,’ like it doesn’t exist my_string <- "apple,banana,orange," strsplit(my_string, split = ‘,’) #> [[1]] #> [1] "apple" […]