{"dist":{"shasum":"67f217582cfdd4367a71d7f46dba2f8425a70e50","tarball":"https://registry.npmjs.org/@apollo/federation/-/federation-0.20.1-alpha.0.tgz","fileCount":293,"integrity":"sha512-bJVeGMUaDYmtZGaPHXJ/2AxriXZhi5vGpuvzJjc9Uvv3cXazcj1aFP7UMomLFd+RclS15s6GLDSF5grjxujA6g==","signatures":[{"sig":"MEQCIGG0NwfYy40eTJD9fdyMDQHmAn7sIVlw4tMJkGNrFx/UAiAkpz3p4Q7YfqcD7S/3PB8vMVAGaAdTqW0q56VDTmUrag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":705636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUTSDCRA9TVsSAnZWagAAmiQP/jC1fe1k+TT9dpwziX7V\n2dsJ3LLEZSV94za9HdJvGD1gnQ4dpxEceUwDQZTwguGJBALXQ+uThIBkWFyU\nZa1Aj4jyI9CzTAviCEhZZLCFO8g/mHJsuDTYVQs/YOm3CVQyPnk2xwoTKTd0\nURI0sxnRw2V8Jp1uARUTiggpIHulGHoRurQKvB3HAyi8bUH9f8ODXEgpegoU\n2Bgj1DMgwS2wRbB44oKo1IETlZX60x7A1PIrkrtfGAcF5B39sFKjyRUH+gck\n6xDoaqXeEtfJ7DDA/7Vm+JCe3xs69UQa5kEdaxnpXtpXJsZvZqNx3tEQ8ebO\nqOWVhthOHcJ63J3okXoqhyPcSuHzW32sfawdpFV2+h1ONfXPX8AdALCjhJeI\nF07g4iimKB+HTtntRbsI4+rU4/oAYICEJ06s5seCwN7pDdu8XvP7Hxqlhob8\nsWGHgLdtdK3lNh+3y6yEfsZ26TOn3sL1DyKuLYIcwKMAVcA8TvgefwHGSb+w\nBtSW3zKpt5r6DMvHzbt1f+eXfelv1NcwtK9kAqjgyuxpBHAq0GOmp+78/+ah\nJswmgNYc9R06IcZwHMMtezXOSbGye6LDCkMpaSsYIPQEM5fqb6/wg5jxkvga\nSF6vUKf4pbM8P9s4gPtgB7tKlDqtPekCK2BA9zO544IEKX1PCx4YK1yHAnl6\nkuZ2\r\n=zKDh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@apollo/federation","types":"dist/index.d.ts","author":{"name":"Apollo","email":"opensource@apollographql.com"},"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/main/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","engines":{"node":">=8"},"gitHead":"a2571cd6efae7e8c9bdfaa6351ec2e62dba4f5bf","license":"MIT","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"keywords":[],"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).","_npmVersion":"lerna/3.22.1/node@v10.22.0+x64 (linux)","description":"Apollo Federation Utilities","directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_nodeVersion":"10.22.0","dependencies":{"core-js":"^3.4.0","lodash.xorby":"^4.7.0","apollo-graphql":"^0.6.0","apollo-server-env":"^2.4.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^14.5.0 || ^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/federation_0.20.1-alpha.0_1599157378873_0.3177718515353585","host":"s3://npm-registry-packages"},"_id":"@apollo/federation@0.20.1-alpha.0","version":"0.20.1-alpha.0"}