Comments (2)
puts UsersSchema.federation_sdl
is even better! I just opened a PR to add this to the readme: #126
from apollo-federation-ruby.
Hello 👋
I think you're looking for something like this?
# Returns the sdl (schema definition language) representing the federated service capabilities. Includes federation
# directives, removes federation types, and includes rest of full schema after schema directives have been applied.
sdl_query = <<-GQL
{
_service {
sdl
}
}
GQL
UsersSchema.execute(sdl_query)
I ran into this same issue myself, and someone on the Apollo team provided this solution. Let me know if that works for you.
from apollo-federation-ruby.
Related Issues (20)
- Find a home for MinimumWageMailer and its templates HOT 1
- Using a dataloader inside `resolve_reference` does not work HOT 10
- passing `@federation__shareable` to type PageInfo HOT 17
- The automated release is failing 🚨
- Add `resolvable` argument to `key` directive HOT 2
- v3.4.x updates federation directive version to 2.3, fails schema checks with Apollo Studio HOT 17
- The automated release is failing 🚨
- support @composeDirective
- Representation fields in entity queries are not validated at query execution time HOT 5
- support @cacheControl HOT 1
- Namespace all federation directives HOT 2
- Federation SDL is invalid for non-Apollo tools HOT 3
- Fowarding headers from Supergraph to subgraphs HOT 2
- Examples - Share
- Development / maintenance status of this gem HOT 7
- Federation directives are not showing up in SDL output HOT 1
- Gateway will merge incorrect data if subgraph changes entity order
- Bug: Orphan types are ignored since version 3.8.5 HOT 3
- graphql 2.3.8 removes "warden", breaking schema composition etc
- `Schema.tracer(ApolloFederation::Tracing::Tracer)` is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-federation-ruby.