ynput / ayon-python-api

Apache License 2.0
8 stars 3 forks source link

Add missing GraphQl filtering options #116

Closed iLLiCiTiT closed 8 months ago

iLLiCiTiT commented 8 months ago

Description

Added missing filtering options for GraphQl queries to entity getters.

Additional information

Because some of the arguments changed order it may be backwards incompatible change. I know about required changes in openpype repository https://github.com/ynput/OpenPype/pull/5997 , but I hope that's all.

BigRoy commented 8 months ago
  • Folder have folder path regex and some boolean filterings.

From an API standpoint, does this now allow passing a Python re compiled re.Pattern object to e.g. the name filter functions similar to how the Pymongo API allowed. Basically the API could do a isinstance(value, re.Pattern) and if so make it a regex query instead.

Or what will be the ayon api equivalent to actually make such a query.

Could you show some API query call examples?

iLLiCiTiT commented 8 months ago

From an API standpoint, does this now allow passing a Python re compiled re.Pattern object to e.g. the name filter functions similar to how the Pymongo API allowed.

No.

Or what will be the ayon api equivalent to actually make such a query.

Could you show some API query call examples?

There is not. You can query folders by folder path regex (single regex string, not object). We can probably add more options on server backend when we'll have a usecase that makes sense.