How can I populate the pointer
field? When I’m querying the data, I’m getting only __type
, className
and objectId
?
can you give an example of what you want to do?
that should be enough to create a pointer object or to query that table for that object id
Sure,
Below is the code where I’m saving category
as Pointer in the Project
Class
When querying, this is the aggregation function that I wore:
and in the response I don’t get all the fields of the category.
that is what you get by default for a pointer.
for a normal query you have to use query.include for that specific field, I don’t know if it also works with pipelines
Yes, works with normal query but not with aggregate / pipeline