Parse Server Rest API, get all objects in relation with GET request method

Hello,
So it’s hard for me to create this kind of request

documentation says:

curl -X GET \
  -H "X-Parse-Application-Id: ${APPLICATION_ID}" \
  -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
  -G \
  --data-urlencode 'order=-createdAt' \
  --data-urlencode 'limit=10' \
  --data-urlencode 'include=post' \
  https://YOUR.PARSE-SERVER.HERE/parse/classes/Comment

So when i want to retrive for example all Products belongs to User, this should work?

http://example_url/parse/classes/_User?include="products"

This is most likely due to the privacy-related restrictions on the User model. You can try to run a query on any other class, and it will work as documented.

To return all users in such a way, you would need to provide the master key to perform this query, which you should not do on the client-side. Instead you can wrap the query in a CC function (but this also should not be made publicly available), or use ACLs on the User objects to grant the “read” permission to users who then will be able to run this query on the client.

Okey i solved this,

So I have User with relation 1:m to Product class. I store all related objects in _User field called products
If I want to retrive all related objects my GET request should looks like this:

{{uri_expressServer}}/parse/classes/Product?where={"$relatedTo":{"object":{"__type":"Pointer","className":"_User","objectId":"tpQDrn1brR"},"key":"products"}}

where objectId i id of User and products is key in _User.
I’m leaving it here if someone else have trouble to read documentation ;p, for me it wasn’t clear

Do you have any suggestion how we can improve the docs to make this more clear?