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 */ […]
0 I was given a link for a graphQL server with already built in queries and mutations. When I tried to run a mutation, I got the following response: { "data": {}, "errors": [ { "message": "Mime type of document could not be determined" } ] } What could be the problem and how can […]
10 If a C program has undefined behavior, anything can happen. Therefore compilers may assume that any given program does not contain UB. So, suppose our program contains the following: x += 5; /* Do something else without x in the meantime. */ x += 7; Of course, this can be optimized to /* Do […]
0 I successfully fetched data from Apollo GraphQL Server in Amber route using ember-apollo-client. I tried the same approach to have a service fetching data but I’m getting Uncaught TypeError: this.apollo.query is not a function from app/services/nav-categories.js. Minimal Working Example Start a new app using $ ember new super-rentals –lang en $ ember generate service […]
1 I’m new to working with react-relay and graphql. I’ve taken the initiative to create the custom hook below and I’m wondering if this is the correct way to do it or if it goes against the recommended practices in Relay. From the usePreloadQuery documentation I do notice that we use it on a deeper […]
5 I have a project using React in Strict Mode alongside GraphQL. I updated some packages, and I now get the following error in useEffect containing async calls. useEffect(() => { const loadTags = async () => { const { data } = await fetchTags(); setTags([…(data?.tags || [])]); }; loadTags(); }, [current, fetchTags]); DOMException: signal […]
0 I’ve got my pothos set up using Prisma and postgresql. I’m trying to expose the createdAt and updatedAt fields from prisma in my builder: Prisma schema: model Course { id Int @id @unique @default(autoincrement()) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt // removed fields for brevity. } My builder: builder.prismaObject(‘Course’, { fields: (t) => ({ […]
8 i update from Xcode 15 beta to Xcode 15. now I want install the iOS package and got this error: enter image description here Already reinstalled Xcode There are already newer versions on the Apple site than what is shown here, maybe that’s where the error comes from? xcode ios-simulator http-status-code-400 Share Improve this […]
0 I have this select query as Native query in Hasura SELECT tblPhOrderSummary.Id as OrderId, tblPhOrderSummary.CreatedOn as OrderDate, tblItems.ItemCode as ItemCode, tblPhOrderProducts.ItemDescription, tblItems.ModelCode AS ModelCode, tblItems.Barcode AS Barcode, tblPhOrderProducts.LOT AS LOT, ” AS Batch, tblPhOrderProducts.Expiry AS Expiry, tblItems.SalesPrice AS UnitSalesPrice, tblPhOrderProducts.Instock AS InStock, tblPhOrderProducts.CurrentStock AS CurrentStock, tblPhOrderProducts.OrderQuantity AS OrderQuantity FROM tblPhOrderProducts INNER JOIN tblItems ON […]
0 I am using typegraphql-prisma and all the resolver are autogenerated. I need to automatically set the createdBy and updatedBy fields in Prisma models based on the authenticated user’s ID, which retrieve from a Firebase token in Express middleware. //auth.middleware.ts import { Response, NextFunction } from "express"; import * as admin from "firebase-admin"; import { […]