{"name":"@apollo/federation","version":"0.14.1-alpha.0","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-graphql":"^0.4.0","apollo-server-env":"^2.4.3","core-js":"^3.4.0","lodash.xorby":"^4.7.0"},"peerDependencies":{"graphql":"^14.0.2 || ^15.0.0"},"gitHead":"b1c8bc989b773c56ac9a2bbd81b25acd8fbf6f18","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.14.1-alpha.0","_nodeVersion":"10.20.0","_npmVersion":"lerna/3.20.2/node@v10.20.0+x64 (linux)","dist":{"integrity":"sha512-BT3s066+no715IMXu/veURTPjl8gBcr01x14wmbHlarVmdvx7XB47OSD6lbiqH+8MWSLrUil5T83BOstmRLA4Q==","shasum":"603eafded20a7e00ee43e4dfbe1eb314e58676f2","tarball":"http://registry-npm.ywwl.com/@apollo/federation/download/@apollo/federation-0.14.1-alpha.0.tgz","fileCount":275,"unpackedSize":574933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelZ2KCRA9TVsSAnZWagAARnYP+wXVktYZz7HofkyF1Fqb\nAxZDwt5L5zGR0YxGuhhVG1HvhmhbPTxKpo/oYHcpnvcjQhcb+FZuGSgyeY3M\nEVjhfSLjT+6E2xiOMx+Qhce2GqNxnbn0MEi/l1SjOCDpo5s7Mu+ErDfBICcG\nz0ItK4LQaCNiJsG9TnFjLY/udy1NnHDhr6l7xw+rN5vwwYzW4tLP3vsH7R/n\nsTyTD4hL2QzJdA2f0eH3s8oGXbxCeGCyhyvdZoAQShL8wCmZC9V6M1miN4rm\n1PeaRejnnewBXiJWUiWdCxLipS23whc8PmZMT5yM2reQxljrx8vt/AOKhm6r\nh8qLYuEYIkjSd+DKW4ft8ZEf5W8YArjhMBXehFWoukSCRGyd2WGPY/L2eZRw\nVO92kAOa9ibViV6DBO91luk47t8JctNzzhca3OP2V0g0XeQjJ/CX/SR053uz\nwYQ1ZpQ7zGl1IncQqJgJfXedJ4EVLtaxVVkzQhI7Q0meAWPF9FewLDvgjSnu\ncNkWi9Ad9xzdYa046FwbvB098z27MNSrOiPEuYq6Ci2NFWpNDbewgIom4k/9\nx1hOShJkYBRUy1mLzhpWm3TjVFVub1gfpoS9lMfzq2lE/ZE6z0cGqenFI5LY\n+ZGbrUzQaIN5NQycwrV/t1kmrQyt/DzLhpwDjNLN+t2VrlefZOVuhFnBtRVD\nX5Is\r\n=XJaH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFBRnU6rYRmhS0UWUaTH+FecK1LIA7mWMeUVhG+huCRQIhAIMH3S5Tv1M9k35Iv1crB45lp78Awl14bG5FYikET5wO"}],"size":103276,"noattachment":false,"key":"/@apollo/federation/-/@apollo/federation-0.14.1-alpha.0.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.14.1-alpha.0_1586863497503_0.7305020787519467"},"_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":1586863497715,"_cnpm_publish_time":1586863497715,"dist-tags":{"latest":"0.38.1","latest-1":"0.38.1"}}