{"name":"@apollo/federation","version":"0.6.9-alpha.8","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":"02feb8a5fed73c529a119e2d24a74ade1e812e69","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.8","_nodeVersion":"10.15.1","_npmVersion":"lerna/3.13.4/node@v10.15.1+x64 (darwin)","dist":{"integrity":"sha512-IPRGJuKuv13nSrTe2vCWFj/LcnW5OgRuoHpD3tayPvQYT2p/gHIRRE0LTG05ihkNEojgKuWL7Wh2+1AHhiJPjA==","shasum":"df7cd79cc66618226dee26355f8cc7c2efc3dbce","tarball":"http://registry-npm.ywwl.com/@apollo/federation/download/@apollo/federation-0.6.9-alpha.8.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\nwsFcBAEBCAAQBQJdH1UXCRA9TVsSAnZWagAA48MP/3wcYZygfOLgtANa05Sl\n+sNLlBjWazPvIKGoCsFfgX8GYNNWMvgeILzzyEz2mzqA8mc03XUlsz0/lKtL\ndX1bo5UQPx7oGJYWlbrjaEN/RBGY1q2H7ppNOANDfZ4aEjhUvlZ7Jot14W59\nRdHe5Q1QlIjhdEks/cs1+dfkbC1KNQlBMcKKMDmvUBp5K+mtsvA9eCt9lP28\nOhUUL8fcpt5k+KCsBd3PSXTUOVCMrIP31aVSlErN6QfIw9ALPownSVnGdC9K\nYg9KNP6aXbQNY9aQc4m+v8QzRE5YU30huKhLvZXNuIdZNKxcxKVJD5yU6X+i\nBEJ69nFx+EFe7Jd5KXrffiATltJ7qadHKgDiRsUZHiDdmT0WVUzZtn/YOI5q\n4GJtfz5gjx/2Ic22EtuzHvEnA1OVWdmnr2RZFqychC2LzzgU14Mhsv7lT2jZ\nsotgZFkP+5uTHfckrsYLJ5iSfFDJbz2byXOytu3RF78ID/DHLwgCxbHN6QH9\nm6IRoYqZ/avEkUTdRXSOx+tWWTztULJ+/XB1+wae1X6MuIOFnxoGN+iPBSw9\nrM5iGjXKb/RNzvsnr06kaGwe5y+SRnMg6WnArU7H3WQZQPJZvrwTB+hw+leu\n9xFxmynK+QZ4YR1dDIH3zTBoacDdrgxRVV2ivGFrfu80mNqrzOASUGhMTvFG\nVD/B\r\n=f6SG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBccFG/Rf30WwNvVJwLfThy2jWXO2D3erU/KR/+s1E/AIgSXWNlamqSR4KzMCXhX0f8NUNv1qqDcYHOihDMvO9QkQ="}],"size":79022,"noattachment":false,"key":"/@apollo/federation/-/@apollo/federation-0.6.9-alpha.8.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.8_1562334487236_0.21899557143746384"},"_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":1562334487378,"_cnpm_publish_time":1562334487378,"dist-tags":{"latest":"0.38.1","latest-1":"0.38.1"}}