Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Use value within an include pointer in a where query

I have a list service running on my schedule collection. In that collection is a pointer to the job_lineitem collection, and in that collection is a pointer to the jobs collection.

Image

Image

I want to use that value "_id" in the where parameter for the list service.

This is what I have so far in the mapping to the where parameter:

Image

In summary, how can I setup the where parameter to determine what results to display based on a value in an included pointer?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Use value within an include pointer in a where query

Hello,

Could you show us screenshots with DB structure?

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Use value within an include pointer in a where query

Sure.

This is the DB that the service is using, and that is the pointer field that looks at the second DB

Image

This is the second DB, and that is the pointer field that looks at the third DB:

Image

And this is the third DB and the the value that I want to use to "filter" the service on the first DB by using it in a where parameter.
Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Use value within an include pointer in a where query

You have to use "_id" column in requests with type=pointer. But it is impossible to use requests to pointer of pointers.

Jack Bua
Posts: 0
Joined: Sun Jun 28, 2015 10:16 pm

Use value within an include pointer in a where query

Ok, thank you Sergiy.

Return to “Issues”