Hello, qq, if I'm using an auto-generator (Pal.js) for my GraphQL schema and resolvers from Prisma, is there a way to specify a field which is not coming from the database but another source? like a placeholder field so I can fill it later when I implement/modify my resolver?
r
Ryan
09/08/2021, 4:03 PM
@Ahmed will be able to assist you here 🙂
h
Hector
09/08/2021, 4:27 PM
Thanks, for example if I want to return:
Copy code
obj {
id
name
data
}
id
,
name
come from the database in Prisma and
data
comes from another HTTP endpoint.
Hector
09/09/2021, 2:03 AM
Hey @Ahmed, for some reason Pal.js is not generating Input types for models with fields that have a enum type field. No matter the generator I use, the Input types are not created.