Closed RantingHuman closed 4 months ago
Describe the bug In the Javascript SDK documentation, an example is given on how to filter entities by relation:
// Filter by relations. const cats = await manifest .from('cats') .where(`owner in 1,2,3`) .andWhere(`store = ${storeId}`) .find()
However, this syntax appears to be incorrect. For instance, if I were to run the following code:
const cats = await manifest .from('cats') .where('owner in 1,2,3') .find();
I get the error:
{ statusCode: 400, message: 'Property owner does not exist in Cat' }
Attempting to load the relations beforehand also does not appear to fix the issue:
const cats = await manifest .from('cats') .with(['owner']) .where('owner in 1,2,3') .find();
To Reproduce Steps to reproduce the behavior:
Expected behavior A list of Cats filtered by the Owner should be returned
Code snippets
Welcome to Manifest, thank you for adding your first issue !
Describe the bug In the Javascript SDK documentation, an example is given on how to filter entities by relation:
However, this syntax appears to be incorrect. For instance, if I were to run the following code:
I get the error:
Attempting to load the relations beforehand also does not appear to fix the issue:
To Reproduce Steps to reproduce the behavior:
Expected behavior A list of Cats filtered by the Owner should be returned
Code snippets