# Schema Design

**URL:** https://community.apollographql.com/c/schema-design/19.md?page=1

[Latest](https://community.apollographql.com/latest.md) · [Categories](https://community.apollographql.com/categories.md) · [Tags](https://community.apollographql.com/tags.md)

**Page:** 2

---

## [Nested Subgraphs? Is it possible?](https://community.apollographql.com/t/nested-subgraphs-is-it-possible/7744)

<div class="topic-metadata">

**Author:** [@Rajat\_S](https://community.apollographql.com/u/Rajat_S)\
**Replies:** 0\
**Last updated:** [August 8, 2024, 6:29am UTC](https://community.apollographql.com/t/nested-subgraphs-is-it-possible/7744 "2024-08-08T06:29:13Z")

</div>

Hi I am just wondering if it is possible to have a subgraph within a subgraph. In other words, I have a supergraphs with multiple subgraphs and one of them is also a supergraph with its own subgraph.

---

## [Handling Null fields from different subgraph in supergraph response](https://community.apollographql.com/t/handling-null-fields-from-different-subgraph-in-supergraph-response/7715)

<div class="topic-metadata">

**Author:** [@graphlearner](https://community.apollographql.com/u/graphlearner)\
**Replies:** 0\
**Last updated:** [July 18, 2024, 5:00pm UTC](https://community.apollographql.com/t/handling-null-fields-from-different-subgraph-in-supergraph-response/7715 "2024-07-18T17:00:16Z")

</div>

We are currently experiencing an issue in generating supergraph response from different subgraphs when field values are null. Consider below example - Let’s assume we have two subgraphs: SubgraphA and SubgraphB. Subgra…

---

## [Troubling schema inspection report](https://community.apollographql.com/t/troubling-schema-inspection-report/7698)

<div class="topic-metadata">

**Author:** [@graphqldevExp](https://community.apollographql.com/u/graphqldevExp)\
**Replies:** 0\
**Last updated:** [July 9, 2024, 7:53pm UTC](https://community.apollographql.com/t/troubling-schema-inspection-report/7698 "2024-07-09T19:53:18Z")

</div>

Hello, I’m trying to create a federated entity across 2 services. I am running into an issue where the fields of the entity are all returning null. When I run an inspection report I get back this result. It shows that “\_…

---

## [Call different service depending on one of field service](https://community.apollographql.com/t/call-different-service-depending-on-one-of-field-service/6548)

<div class="topic-metadata">

**Author:** [@srxdefi](https://community.apollographql.com/u/srxdefi)\
**Replies:** 0\
**Last updated:** [August 2, 2023, 11:27am UTC](https://community.apollographql.com/t/call-different-service-depending-on-one-of-field-service/6548 "2023-08-02T11:27:42Z")

</div>

So I have a few services that provide Product data but this services has separate data stores. Is possible to query a specific service depending on field value? I describe problem with the GQL below. ## # This is super…

---

## [Does Apollo access control using @policy support interfaces?](https://community.apollographql.com/t/does-apollo-access-control-using-policy-support-interfaces/7635)

<div class="topic-metadata">

**Author:** [@andrewttd](https://community.apollographql.com/u/andrewttd)\
**Replies:** 0\
**Last updated:** [June 20, 2024, 12:25am UTC](https://community.apollographql.com/t/does-apollo-access-control-using-policy-support-interfaces/7635 "2024-06-20T00:25:53Z")

</div>

Hello, I’m wondering if the @policy directive supports interfaces. We are using @policy directives with an external coprocessor and a team wanted to use the @policy directive on a concrete type that implemented an inter…

---

## [Sorting information](https://community.apollographql.com/t/sorting-information/7462)

<div class="topic-metadata">

**Author:** [@Peter\_octo](https://community.apollographql.com/u/Peter_octo)\
**Replies:** 0\
**Last updated:** [May 2, 2024, 1:16am UTC](https://community.apollographql.com/t/sorting-information/7462 "2024-05-02T01:16:20Z")

</div>

Good day, I’m working in a new query (graphql), and i’m struggling filtering the result by specific “offers” example (name:“TME” and “Avnet”). Can you help me in this matter? Thank you! Best Regards

---

## [Mutation with entities](https://community.apollographql.com/t/mutation-with-entities/8084)

<div class="topic-metadata">

**Author:** [@Kanika](https://community.apollographql.com/u/Kanika)\
**Replies:** 0\
**Last updated:** [January 13, 2025, 11:29am UTC](https://community.apollographql.com/t/mutation-with-entities/8084 "2025-01-13T11:29:10Z")

</div>

Hi all, I have apollo federation v2 setup. I have a use case where I need to add a mutation in one of the subgraph( say Subgraph 2) The data I need to update on server is being fetched in another subgraph ( Subgraph 1…

---

## [Tangible consequences of mounting mutations on the Query type?](https://community.apollographql.com/t/tangible-consequences-of-mounting-mutations-on-the-query-type/8045)

<div class="topic-metadata">

**Author:** [@ofer-pd](https://community.apollographql.com/u/ofer-pd)\
**Replies:** 0\
**Last updated:** [January 2, 2025, 6:53pm UTC](https://community.apollographql.com/t/tangible-consequences-of-mounting-mutations-on-the-query-type/8045 "2025-01-02T18:53:43Z")

</div>

Hello. This is my first post. I’m excited to find a place where I can ask about and discuss GraphQL concepts instead of just the technical questions that StackOverflow is limited to. My first question is re: the stro…

---

## [Schema Design Best Practices](https://community.apollographql.com/t/schema-design-best-practices/7055)

<div class="topic-metadata">

**Author:** [@thebrandonhoward](https://community.apollographql.com/u/thebrandonhoward)\
**Replies:** 1\
**Last updated:** [January 28, 2025, 9:40pm UTC](https://community.apollographql.com/t/schema-design-best-practices/7055 "2025-01-28T21:40:50Z")

</div>

I have 4 individual microservices and a dashboard that has 5 tabs. Each tab corresponds to data from the four services, with the fifth tab being a consolidated list of the other four. Each tab has the same set of fields …

---

## [Need to POST Data to REST API using GraphQL Connector to support GraphQL Mutations](https://community.apollographql.com/t/need-to-post-data-to-rest-api-using-graphql-connector-to-support-graphql-mutations/7995)

<div class="topic-metadata">

**Author:** [@JTBS](https://community.apollographql.com/u/JTBS)\
**Replies:** 4\
**Last updated:** [December 20, 2024, 11:50pm UTC](https://community.apollographql.com/t/need-to-post-data-to-rest-api-using-graphql-connector-to-support-graphql-mutations/7995 "2024-12-20T23:50:19Z")

</div>

Hi, I am able to use GraphQL Connectors successfully to fetch data from REST end point. But I need a way to POST data to REST end point to support GraphQL mutations. I would like to do this with NO CODE approach using G…

---

## [Directive data not available in the composed supergraph](https://community.apollographql.com/t/directive-data-not-available-in-the-composed-supergraph/8004)

<div class="topic-metadata">

**Author:** [@SlackJaw74](https://community.apollographql.com/u/SlackJaw74)\
**Replies:** 0\
**Last updated:** [December 13, 2024, 2:20am UTC](https://community.apollographql.com/t/directive-data-not-available-in-the-composed-supergraph/8004 "2024-12-13T02:20:23Z")

</div>

I’m playing around with the tag and composeDirective with federation 2.0 to see if I can have information specified in the subgraphs centrally read in the gateway but I cannot ever seem to have that data show up in the c…

---

## [Trying connector but experiencing CORS errors](https://community.apollographql.com/t/trying-connector-but-experiencing-cors-errors/7935)

<div class="topic-metadata">

**Author:** [@sunnytoolsmiths](https://community.apollographql.com/u/sunnytoolsmiths)\
**Replies:** 2\
**Last updated:** [December 11, 2024, 8:42pm UTC](https://community.apollographql.com/t/trying-connector-but-experiencing-cors-errors/7935 "2024-12-11T20:42:31Z")

</div>

See the error I got Here is the schema

---

## [Query based on data from multiple services (subgraphs)](https://community.apollographql.com/t/query-based-on-data-from-multiple-services-subgraphs/6378)

<div class="topic-metadata">

**Author:** [@antongildebrand](https://community.apollographql.com/u/antongildebrand)\
**Replies:** 2\
**Last updated:** [December 9, 2024, 8:09pm UTC](https://community.apollographql.com/t/query-based-on-data-from-multiple-services-subgraphs/6378 "2024-12-09T20:09:57Z")

</div>

Hi! We’re exploring breaking our monolith into smaller services. The federated graph concept so far looks really cool, with the entire concept of populating entities with data from different services, but now we’ve run i…

---

## ["(0 , federation\_internals\_1.buildSupergraphSchema) is not a function or its return value is not iterable"](https://community.apollographql.com/t/0-federation-internals-1-buildsupergraphschema-is-not-a-function-or-its-return-value-is-not-iterable/6735)

<div class="topic-metadata">

**Author:** [@mahammad](https://community.apollographql.com/u/mahammad)\
**Replies:** 1\
**Last updated:** [October 26, 2024, 3:50pm UTC](https://community.apollographql.com/t/0-federation-internals-1-buildsupergraphschema-is-not-a-function-or-its-return-value-is-not-iterable/6735 "2024-10-26T15:50:13Z")

</div>

“(0 , federation\_internals\_1.buildSupergraphSchema) is not a function or its return value is not iterable”

---

## [Federation extending a type but requiring a parent field](https://community.apollographql.com/t/federation-extending-a-type-but-requiring-a-parent-field/7895)

<div class="topic-metadata">

**Author:** [@Darren\_West](https://community.apollographql.com/u/Darren_West)\
**Replies:** 0\
**Last updated:** [October 15, 2024, 2:11pm UTC](https://community.apollographql.com/t/federation-extending-a-type-but-requiring-a-parent-field/7895 "2024-10-15T14:11:55Z")

</div>

Hi, I want to extend a type to have more information from a subgraph to have some new fields but it requires an argument passed into a parent type. I will use an example below: I have two subgraphs a book subgraph and …

---

## [How to implement federation using spring boot? Doucmentation talks about only "key", what about others?](https://community.apollographql.com/t/how-to-implement-federation-using-spring-boot-doucmentation-talks-about-only-key-what-about-others/7467)

<div class="topic-metadata">

**Author:** [@techtreet](https://community.apollographql.com/u/techtreet)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 8:06am UTC](https://community.apollographql.com/t/how-to-implement-federation-using-spring-boot-doucmentation-talks-about-only-key-what-about-others/7467 "2024-10-10T08:06:50Z")

</div>

I am trying to understand how to implement federation using spring boot. I was able to understand how to use “@key” annotation using an example given here. But how do I understand the remaining? The documentation just me…

---

## [How to make existing graphQL-java server Apollo federation compatible?](https://community.apollographql.com/t/how-to-make-existing-graphql-java-server-apollo-federation-compatible/7882)

<div class="topic-metadata">

**Author:** [@mankrit](https://community.apollographql.com/u/mankrit)\
**Replies:** 1\
**Last updated:** [October 10, 2024, 4:40am UTC](https://community.apollographql.com/t/how-to-make-existing-graphql-java-server-apollo-federation-compatible/7882 "2024-10-10T04:40:33Z")

</div>

Hi everyone! I am new to the Apollo Federation. I have an existing Java service, that uses graphQL-java library to serve the graphQL request. How do I make my scheme federation compatible? Do I need to include any speci…

---

## [Compose supergraph with subgraph introspect](https://community.apollographql.com/t/compose-supergraph-with-subgraph-introspect/7819)

<div class="topic-metadata">

**Author:** [@nsalehvaziri\_paypal](https://community.apollographql.com/u/nsalehvaziri_paypal)\
**Replies:** 1\
**Last updated:** [September 12, 2024, 5:37pm UTC](https://community.apollographql.com/t/compose-supergraph-with-subgraph-introspect/7819 "2024-09-12T17:37:30Z")

</div>

I have dummy question. Is it possible in self-hosted router (if we don’t need supergraph schema check or versioning) compose supergraph schema from subgraph introspection like rover dev with providing subgraph routing\_ur…

---

## [TypeError: Cannot read properties of undefined (reading 'QUERY')\\n](https://community.apollographql.com/t/typeerror-cannot-read-properties-of-undefined-reading-query-n/7818)

<div class="topic-metadata">

**Author:** [@Shail\_Patel](https://community.apollographql.com/u/Shail_Patel)\
**Replies:** 0\
**Last updated:** [September 11, 2024, 1:56pm UTC](https://community.apollographql.com/t/typeerror-cannot-read-properties-of-undefined-reading-query-n/7818 "2024-09-11T13:56:55Z")

</div>

I have defined my directives.graphql and have below code scalar DateTime scalar JSON scalar FieldSet type \_Service { sdl: String! } extend type Query { \_service: \_Service! } directive @key( fields: FieldSet! …

---

## [Keep getting missing usable key when using requires directive](https://community.apollographql.com/t/keep-getting-missing-usable-key-when-using-requires-directive/7754)

<div class="topic-metadata">

**Author:** [@Saurabh\_Gupta](https://community.apollographql.com/u/Saurabh_Gupta)\
**Replies:** 3\
**Last updated:** [August 15, 2024, 5:03pm UTC](https://community.apollographql.com/t/keep-getting-missing-usable-key-when-using-requires-directive/7754 "2024-08-15T17:03:01Z")

</div>

I created a new sub-graph on top of locations and review and have the schema as below. Basically I want to pass info from locations subgraph as requires to resolve something in this new sub-graph. type Query { “Query t…

---

## [Setting Up Federated GraphQL Architecture for ECS Microservices?](https://community.apollographql.com/t/setting-up-federated-graphql-architecture-for-ecs-microservices/7749)

<div class="topic-metadata">

**Author:** [@Ashlok2003](https://community.apollographql.com/u/Ashlok2003)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 6:13am UTC](https://community.apollographql.com/t/setting-up-federated-graphql-architecture-for-ecs-microservices/7749 "2024-08-14T06:13:45Z")

</div>

I am designing an infrastructure for an application where microservices are deployed using ECS. Each microservice exposes its own GraphQL endpoint via AWS AppSync. My goal is to set up a federated GraphQL architecture wh…

---

## [Directive @context](https://community.apollographql.com/t/directive-context/7710)

<div class="topic-metadata">

**Author:** [@Yaroslav](https://community.apollographql.com/u/Yaroslav)\
**Replies:** 1\
**Last updated:** [July 12, 2024, 10:59am UTC](https://community.apollographql.com/t/directive-context/7710 "2024-07-12T10:59:35Z")

</div>

Hello Apollo team, Is it possible to add directive @context for argument (input) of some field? I would like to save argument into context and pass it into child field as argument. Is it possible? Thanks!

---

## [@override("other subgraph", label: "percent(num)") is not working for field which is @required by other subgraph](https://community.apollographql.com/t/override-other-subgraph-label-percent-num-is-not-working-for-field-which-is-required-by-other-subgraph/7610)

<div class="topic-metadata">

**Author:** [@Pratiksha](https://community.apollographql.com/u/Pratiksha)\
**Replies:** 1\
**Last updated:** [June 14, 2024, 2:25pm UTC](https://community.apollographql.com/t/override-other-subgraph-label-percent-num-is-not-working-for-field-which-is-required-by-other-subgraph/7610 "2024-06-14T14:25:54Z")

</div>

I am getting error SATISFIABILITY\_ERROR when trying @override with label if that field is required by other subgraph. subgraph1 type Type1 { fieldName: EntityTypeObject @override("subgraph2", label:"percent(0)") } …

---

## [Label with require directive](https://community.apollographql.com/t/label-with-require-directive/7604)

<div class="topic-metadata">

**Author:** [@Pratiksha](https://community.apollographql.com/u/Pratiksha)\
**Replies:** 2\
**Last updated:** [June 13, 2024, 10:06am UTC](https://community.apollographql.com/t/label-with-require-directive/7604 "2024-06-13T10:06:01Z")

</div>

In my project I am working with multiple subgraphs , I am trying to migrate one field let’s say destination from subgraph A to subgraph B. But initially I want to use label percentage 0 while overriding the field in subg…

---

## [Colocated fragments best practice for when multiple components needs to fetch same data](https://community.apollographql.com/t/colocated-fragments-best-practice-for-when-multiple-components-needs-to-fetch-same-data/7572)

<div class="topic-metadata">

**Author:** [@Jeff\_Apollo](https://community.apollographql.com/u/Jeff_Apollo)\
**Replies:** 1\
**Last updated:** [June 3, 2024, 10:18am UTC](https://community.apollographql.com/t/colocated-fragments-best-practice-for-when-multiple-components-needs-to-fetch-same-data/7572 "2024-06-03T10:18:16Z")

</div>

Hi, I am trying to understand the best practices when using colocated fragments. I understand that one of the best practice is to ensure that each component is responsible for its own data requirements. If we have multi…

---

## [Correct way to pass additional arguments from a field resolver to another subgraph?](https://community.apollographql.com/t/correct-way-to-pass-additional-arguments-from-a-field-resolver-to-another-subgraph/7553)

<div class="topic-metadata">

**Author:** [@strae](https://community.apollographql.com/u/strae)\
**Replies:** 0\
**Last updated:** [May 24, 2024, 12:18pm UTC](https://community.apollographql.com/t/correct-way-to-pass-additional-arguments-from-a-field-resolver-to-another-subgraph/7553 "2024-05-24T12:18:22Z")

</div>

Hello! Is my first approach to graphql federation, I’m trying to understand what can I do (and how) with the directives. So, let’s consider a simple supergraph example composed by 2 graphs: auth and profiles. auth stor…

---

## [Federation-graphql-java-support for GraphQL-SPQR](https://community.apollographql.com/t/federation-graphql-java-support-for-graphql-spqr/7530)

<div class="topic-metadata">

**Author:** [@vmadhipatla](https://community.apollographql.com/u/vmadhipatla)\
**Replies:** 2\
**Last updated:** [May 22, 2024, 2:10am UTC](https://community.apollographql.com/t/federation-graphql-java-support-for-graphql-spqr/7530 "2024-05-22T02:10:18Z")

</div>

Hi, We use code first approach using GraphQL-SPQR in Spring. With SPQR, schema is generated during query time. When I tried to integrate federation-jvm, I got this error. Caused by: org.springframework.graphql.executi…

---

## [How to implement apollo federation using springboot API?](https://community.apollographql.com/t/how-to-implement-apollo-federation-using-springboot-api/4691)

<div class="topic-metadata">

**Author:** [@Vijay\_Kumar](https://community.apollographql.com/u/Vijay_Kumar)\
**Replies:** 3\
**Last updated:** [May 6, 2024, 5:27pm UTC](https://community.apollographql.com/t/how-to-implement-apollo-federation-using-springboot-api/4691 "2024-05-06T17:27:49Z")

</div>

I am new to apollo graphql federation. And I want to implement federated graphql using spring boot API. Can anybody suggest a tutorial specific to java and spring boot? or which library I should be using?

---

## [GraphQL Java Kickstart (Spring Boot) @link support](https://community.apollographql.com/t/graphql-java-kickstart-spring-boot-link-support/5095)

<div class="topic-metadata">

**Author:** [@Michael\_Mole](https://community.apollographql.com/u/Michael_Mole)\
**Replies:** 16\
**Last updated:** [May 6, 2024, 5:27pm UTC](https://community.apollographql.com/t/graphql-java-kickstart-spring-boot-link-support/5095 "2024-05-06T17:27:26Z")

</div>

Hi there. I have a GraphQL service implemented using spring boot (spring-boot-starter-graphql). I’m looking to use it as a subgraph with Apollo Federation v2. The documentation here, https://www.apollographql.com/docs…

---

## [GraphOS Federation metrics into Grafana](https://community.apollographql.com/t/graphos-federation-metrics-into-grafana/7464)

<div class="topic-metadata">

**Author:** [@Jlee](https://community.apollographql.com/u/Jlee)\
**Replies:** 0\
**Last updated:** [May 2, 2024, 3:57am UTC](https://community.apollographql.com/t/graphos-federation-metrics-into-grafana/7464 "2024-05-02T03:57:50Z")

</div>

Is it possible to externally expose the metrics gathered in Apollo Studio’s free Serverless tier plan on a Federation supergraph? I’m interested in unifying into my Grafana dashboards if possible, if not I’ll have to im…

[Previous page](https://community.apollographql.com/c/schema-design/19.md)

[Next page](https://community.apollographql.com/c/schema-design/19.md?page=2)
