{"name":"@apollo/federation","version":"0.6.9-alpha.2","description":"Apollo Federation Utilities","main":"dist/index.js","types":"dist/index.d.ts","keywords":[],"author":{"name":"Apollo","email":"opensource@apollographql.com"},"license":"SEE LICENSE IN LICENSE.md","engines":{"node":">=8"},"publishConfig":{"access":"public"},"dependencies":{"apollo-env":"^0.5.1","apollo-graphql":"^0.3.3","apollo-server-env":"2.4.0"},"peerDependencies":{"graphql":"^14.0.2"},"gitHead":"c42d817836c10e3b59cc1afd0163eec59d7bec90","readme":"# `Apollo Federation Utilities`\n\nThis package provides utilities for creating GraphQL microservices, which can be combined into a single endpoint through tools like [Apollo Gateway](https://github.com/apollographql/apollo-server/tree/master/packages/apollo-gateway).\n\nFor complete documentation, see the [Apollo Federation API reference](https://www.apollographql.com/docs/apollo-server/api/apollo-federation/).\n\n## Usage\n\n```js\nconst { ApolloServer, gql } = require(\"apollo-server\");\nconst { buildFederatedSchema } = require(\"@apollo/federation\");\n\nconst typeDefs = gql`\n  type Query {\n    me: User\n  }\n\n  type User @key(fields: \"id\") {\n    id: ID!\n    username: String\n  }\n`;\n\nconst resolvers = {\n  Query: {\n    me() {\n      return { id: \"1\", username: \"@ava\" }\n    }\n  },\n  User: {\n    __resolveReference(user, { fetchUserById }){\n      return fetchUserById(user.id)\n    }\n  }\n};\n\nconst server = new ApolloServer({\n  schema: buildFederatedSchema([{ typeDefs, resolvers }])\n});\n```\n","readmeFilename":"README.md","_id":"@apollo/federation@0.6.9-alpha.2","_nodeVersion":"10.15.1","_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","dist":{"integrity":"sha512-mYppwnyrd4OgjkoEyyd5HM5YvR5pW1pBXH4rKc4vgNDHYLbnlF7XF8oBcOEU0c8FZPdSvgMn6G0CfMKb/+fObA==","shasum":"70b84cd4f6b2a45287738b25468d598f05f50e17","tarball":"http://registry-npm.ywwl.com/@apollo/federation/download/@apollo/federation-0.6.9-alpha.2.tgz","fileCount":249,"unpackedSize":431981,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGTLoCRA9TVsSAnZWagAAejEP/RWxnTqlrOObQbJteH8+\nvfgr76G4tollN8yOzVCXPX2lXebZDS/x1aNlZHloqTN+7mWCOQMsCj8ctRof\n63USZnabYezSw4ApDq0I+ycXWAi0AIb451iow1bz1TDSjRfrH6NZABS0pB/m\ng+6G/rDUcWW11VU+4d8pP517LGjg3njp6kbSuiq85lsk7geTjoSRIJERunhr\nRtl/lQQERVw+3jga1h+uRI6JYSc4tCYEan4feeJFEHfJP3f34D/xrkYJKUjY\n9mHjCED2MnjL2lKrUzW3e7M4miFeF4kGmgaSfWBUDJJWtScwrdfp62IVv/8+\na3tL288dkqwpndfrM0WRjs5K2hJJO4KOQkgtPAER2ty/WI6rsjWVuBz1IHtD\nOOsOeZGWSqoGkzvbZI+yPK4RDB/0gqRXWggxl9/QrP1qJjguTISaqlBOzjgl\n4gaFjC1gDKT7tJ3v+UDHIX6Vt9TRGazGk8lPbwp+mFOYcGHp5b+UeMJZaL+O\n9/6KbRcc3JG31yjflfMpoxBnYGaUismz2Tf5Ew5CpI0pWLh51E2rFEdYIjCN\nP5l7DDIwCmN12m5zTl+ZrEovs/WrQHif5AyGlqCUpOP5yf5Hdlmfqsz1A/MZ\nWy3n7MsidRuxRT42bXDZUKvFwVyuIz7vdWld8mizO06bZJp0iqkW9HI5Cnb4\n5zBq\r\n=tC3U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDdZXMn/WGKj1MvufFNaPX5wPuQ0pwWRvWweFkUXmlzXAiEA6OV26wkgiYmJj+apw06eNrJMdOrUDZp0sk967QqYv6s="}],"size":79022,"noattachment":false,"key":"/@apollo/federation/-/@apollo/federation-0.6.9-alpha.2.tgz"},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/federation_0.6.9-alpha.2_1561932519379_0.9722108035170278"},"_hasShrinkwrap":false,"deprecated":"The @apollo/federation package is deprecated and will reach end-of-life September 22, 2023. It contains outdated utilities for both running subgraphs and composing supergraph schemas. Please migrate to the appropriate package for your use case (@apollo/subgraph or @apollo/composition). For more details, see our announcement blog post (https://www.apollographql.com/blog/announcement/backend/announcing-the-end-of-life-schedule-for-apollo-gateway-v0-x/) and documentation (https://www.apollographql.com/docs/federation/federation-2/backward-compatibility/#is-official-support-ending-for-apollogateway-v0x).","publish_time":1561932519518,"_cnpm_publish_time":1561932519518,"dist-tags":{"latest":"0.38.1","latest-1":"0.38.1"}}