diff --git a/client/python/cryoet_data_portal/src/cryoet_data_portal/_gql_base.py b/client/python/cryoet_data_portal/src/cryoet_data_portal/_gql_base.py index 2b74d8fb4..50c1f8d67 100644 --- a/client/python/cryoet_data_portal/src/cryoet_data_portal/_gql_base.py +++ b/client/python/cryoet_data_portal/src/cryoet_data_portal/_gql_base.py @@ -221,14 +221,14 @@ def find( Expressions with python-native operators (``==``, ``!=``, ``>``, ``>=``, ``<``, ``<=``) must be in the format: ``ModelSubclass.field`` ``{operator}`` ``{value}`` - example: - ``Tomogram.voxel_spacing.run.name == "RUN1"`` + Example: + - ``Tomogram.voxel_spacing.run.name == "RUN1"`` Expressions with method operators (``like``, ``ilike``, ``_in``) must be in the format: ``ModelSubclass.field.{operator}({value})`` - examples: - ``Tomogram.voxel_spacing.run.name.like("%RUN1%")`` - ``Tomogram.voxel_spacing.run.name._in(["RUN1", "RUN2"])`` + Examples: + - ``Tomogram.voxel_spacing.run.name.like("%RUN1%")`` + - ``Tomogram.voxel_spacing.run.name._in(["RUN1", "RUN2"])`` Supported operators are: ``==``, ``!=``, ``>``, ``>=``, ``<``, ``<=``, ``like``, ``ilike``, ``_in`` @@ -255,6 +255,7 @@ def find( Filter runs by attributes, including attributes in related models: >>> runs = Run.find(client, query_filters=[Run.name == "TS_026", Run.dataset.id == 10000]) + >>> runs = Run.find(client, query_filters=[Run.name._in(['TS_026', 'TS_027']), Run.tomogram_voxel_spacings.annotations.object_name.ilike('%membrane%')]) Get all results for this type: