# Lists of objects in FieldSet's for @key or @requires?

**URL:** <https://community.apollographql.com/t/lists-of-objects-in-fieldsets-for-key-or-requires/7307>\
**Category:** Schema Design\
**Tags:** federation\
**Created:** [March 18, 2024, 9:06am UTC](https://community.apollographql.com/t/lists-of-objects-in-fieldsets-for-key-or-requires/7307 "2024-03-18T09:06:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james\_mc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/james_mc/32/4974_2.png) [@james\_mc](https://community.apollographql.com/u/james_mc)\
**Post date:** [March 18, 2024, 9:06am UTC](https://community.apollographql.com/t/lists-of-objects-in-fieldsets-for-key-or-requires/7307/1 "2024-03-18T09:06:02Z")

</div>

Is it possible that the FieldSet for the key or requires directive can accept a list of objects? i.e.

type SimpleEntity @key(fields: “id { value }”) {  
id: [IDValue!]!  
}

type IDValue {  
value: ID!  
}

I can’t spot anything in the documentation saying this should not work, but I can’t get it to function and am not sure if it’s due to the gateway i’m using (graphql-mesh) not handling it correctly or incorrect usage on my behalf.

---

<div class="post-metadata">

**Author:** ![dkuc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/dkuc/32/2892_2.png) [@dkuc](https://community.apollographql.com/u/dkuc)\
**Post date:** [April 1, 2024, 7:17pm UTC](https://community.apollographql.com/t/lists-of-objects-in-fieldsets-for-key-or-requires/7307/2 "2024-04-01T19:17:55Z")

</div>

Currently `@key` does not support list fields. List fields should work with `@requires` directive.
