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