prisma-binding icon indicating copy to clipboard operation
prisma-binding copied to clipboard

Sub-selecting custom fields

Open LydiaF opened this issue 6 years ago • 2 comments

Hi there,

I am sorry if I am missing something big here! I do not even see why this would work but I am completely lost how to go about it :)

I have a big operation that I need to do on the server. It is completely disconnected with the front-end request. I am trying to get some custom fields in a subselection in a prisma query on the backend. This custom field is in the schema but it is not in the prisma data-model; that is why I don't see why it would even work in the first place.

In the picture below, what I have highlighted in the editor is the custom field.

image

I am getting this error:

image

My question is: is it possible to use prisma at all to access these custom fields on the server? If not, can you point me in the right direction? Thank you so much.

LydiaF avatar Jul 31 '19 08:07 LydiaF

How did you solve this?

cesarve77 avatar Sep 11 '19 22:09 cesarve77

It pained me to do this but I moved the code that resolved these custom fields to where I was trying to get these fields. :cry:

LydiaF avatar Sep 12 '19 08:09 LydiaF