Tag: tag
-
GraphQL Server unreachable
0 I am trying to create serverless azure function with graphql in visualstudio code. I am following the below tutorial Build Serverless API with GraphQL and Azure— Part I After starting the application, i see the error attached in the browser. unable to execute query because of the error. Tried with the embed sandbox on […]
-
How can I getting only the number id of the product in shopify using graphql and laravel app
0 This is my routes Route::get(‘/carts/{numericProductID}’, ‘AppHttpControllersShopifyController@showProductDetails’) ->name(‘showProductDetails’); This is the link to direct to other page to show/fetch the details of the selected product <a href="{{ route(‘showProductDetails’, [‘numericProductID’ => $product[‘node’][‘id’]]) }}">View Details</a> php html laravel graphql shopify Share Follow asked 33 mins ago Ruel A AlmoniaRuel A Almonia 111 bronze badge 1 What is […]
-
AWS Appsync query with in or not in operator doesn’t exist?
0 I want to return all items that are not in my arrays. Some think like below but in graphql-aws world: query( collection(db, "users"), where("id", "not-in", […likedUserIds, …dislikedUserIds]) ) I tried: const { data } = await API.graphql( graphqlOperation(getUsers, { filter: { id: { ne: […likedUserIds, …dislikedUserIds]} }, }) ); But this says "Variable ‘ne’ […]
-
AppSync Enhanced Filtering resolver
0 My schema: type Mutation { createOrder(order: OrderDTO!): Order! } type Subscription { onNewOrder(minimumPrice: Float): Order @aws_subscribe(mutations: ["createOrder"]) } My Lambda resolver for createOrder mutation: exports.handler = async function (event: OrderEvent): Promise<OrderWithPrice> { const order = await orderRepository.createOrder(event); … return { …order, totalPrice: await calculateTotalPrice(order) } }; The user should pass minimumPrice parameter on subscription […]
-
Query with array in graphql
0 I want to return all items that are not in my arrays. Some think like below but in graphql-aws world: query( collection(db, "users"), where("id", "not-in", […likedUserIds, …dislikedUserIds]) ) I tried: const { data } = await API.graphql( graphqlOperation(getUsers, { filter: { id: { ne: […likedUserIds, …dislikedUserIds]} }, }) ); But this says "Variable ‘ne’ […]
-
How to get only selected fields on graphql using javascript
-1 I need a basic query to take all users from graphql but only with selected fields such as email, name etc. I couldn’t figure out how it works, aws doc gives example about filtering but it uses id to filter. export const getUsers = async () => { try { const { data } […]
-
How to interpret Query, Mutation and Subscription operations in a Ballerina GraphQL service?
0 Most GraphQL libraries use the schema definition language(SDL) to define the types of a GraphQL service, like this: type Query { greeting: String! } type Mutation { setName(name: String!): String! } type Subscription { greetings: String! } In Ballerina, how do we define the schema, and where should we add these types? graphql ballerina […]
-
Lambda returning wrong data – type mismatch error, expected type LIST
0 In my schema.graphql I have set query: type Query { listCourses(param1: String, param2: String): [Course] and type Course: type Course { id: ID! fullname: String shortname: String idnumber: String summary: String } And in my frontend application I am calling this query that triggers lambda: async getDataByCodeType() { const query = /* GraphQL */ […]
-
Can Function Middleware and HotChocolate Middleware be used together?
0 Is it possible to use Function Middlewares and Hot Chocolate Middlewares to be used together when using Azure Functions in an isolated-process? For example: Consider Authentication middleware that is defined at a Function level via IFunctionWorkerMiddleware. When the function is triggered, the Authentication Middleware is triggered and if authentication succeeds, then passes the control […]
-
How to generate the GraphQL client for a secured GraphQL API?
0 How can I generate the auth parameter using the bal graphql command? When I run bal graphql –help, I don’t see any options. Do I need to manually modify the generated code? I have generated the GraphQL client using the latest version of Ballerina and it creates a record named public type ConnectionConfig record. […]