How do you filter nested objects using the autogenerated GraphQL schema?

I have the following schema

{
"properties": {
"_id": {
  "bsonType": "objectId"
},
"prescriptions": {
  "bsonType": "array",
  "items": [
    {
      "bsonType": "object",
      "properties": {
        "_id": {
          "bsonType": "objectId"
        },
        "left_eye": {
        "bsonType": "string"
        }
        }
       }
      ]
      }
     }

When I try to query the nested “prescriptions” object using GraphQL I get the following error:
“Unknown argument “limit” on field “prescriptions” of type “Client””

Is there anything I can do so that i can query/filter the nested array? So that I limit to get just 1 entry and order it by date added

Sounds like you need a custom resolver. You can create a custom resolver and have it be a child of that schema. So you can add a field called “prescriptionsFilter” or something along that idea.