{"dist":{"shasum":"3594493426c659513f7e1c8c0a3536a21427db0e","tarball":"https://registry.npmjs.org/@apollo/federation/-/federation-0.300.0-alpha.3.tgz","fileCount":287,"integrity":"sha512-Kpd7Ae2UkmefyMox+Y3l/xYjD755qBXEFHnN62pEeCnd2TAF4neROIx8+598ceTewlANMNoM2wL+0RUM+AGppA==","signatures":[{"sig":"MEUCIQDbICAJhAFJxCXQoo7otu7swcrMGBZXV8aw341zPijxRQIgchj3YN+4SuRIaoujUYJTT77j8gYELUVwSMBeJ0iSnjk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":682232,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNB+tCRA9TVsSAnZWagAAr1gP/RA8X+aKuYpNz1bR2IN9\nMyjx6IA55RlbJeDPAaBh2sj1/+bSXE3/Tw1/tPuO1AWfOdE3Dir18EDB7zro\njHiOTRSbFHw1x9KO+4ztCgmAVrTOH4kMNh8yySx+aaKXTYN/a0c21m6/a40s\nCn0P4iATZrJyF4hQcsYaU4YB7QvOLYxIigOqW//LWpmLxcfIS8iSPcNGtRq5\nJK7rZcgn3pB3/4MlNqytZFpTGyAnA752a3gKeTZmXfy3Wf/+vPYtELywg9Rx\neEHm9MFKtKRg8vxYzgeD2dDbWdfuq4fVZJIl2VGoPXyroMgqO73GBXMRTyYU\n6kS5AOsmMl5HmVnzxrKBBdliElf5giWLoQCp8gH27PJt5oRnc9S+m7mxwC29\ng6zbDSuYH1zjwqFAC9gbYHRMGpMVZbXUmsZ7xVrk2Ws+VF/bpeLccpxmjvtM\nJoTwkj8icvNEmmwh2NLfBRy/Q2i1DF6dP+H8lKzivf+lr9ed57in/8nhEgQc\nHUL1qgq9rWFFPUDCumiU3ELTbfoczCjdWhDorPngrvfYRTVbsWXNbNddmYUU\nQ92VZDcyeuvgVDp/tzX5/60Vo/VvuEBeDCsnASpyJgPt8Ds+vEKZKCveTVjX\n+USzzGKgG3nrkKWsYYS2Sq/cSvBY++n7/aK3RJGwH/4knC6/lnfwS9nmq7K4\nb2tM\r\n=sgd4\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":">=12.0 <15.0"},"gitHead":"15b90eec22523e32e00d97a51b28cbfba3f39c78","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.6.5","lodash.xorby":"^4.7.0","apollo-graphql":"^0.5.0","apollo-server-env":"^3.0.0-alpha.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^15.3.0"},"_npmOperationalInternal":{"tmp":"tmp/federation_0.300.0-alpha.3_1597251500626_0.014187746372618992","host":"s3://npm-registry-packages"},"_id":"@apollo/federation@0.300.0-alpha.3","version":"0.300.0-alpha.3"}