{"name":"@apollo/federation","version":"0.6.6-alpha.1","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.1-alpha.0"},"peerDependencies":{"graphql":"^14.0.2"},"gitHead":"ec185a874c2f07b3724db62a3ec8560cfe3850af","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.6-alpha.1","_nodeVersion":"11.14.0","_npmVersion":"lerna/3.13.4/node@v11.14.0+x64 (darwin)","dist":{"integrity":"sha512-MLS2AJQMJUmc0gur2F56hH0ShHlblWZvaYlDrQZ0nhUpQq0mhfL1TPGjvra6cJldjKdQuDOHfKIecSqQVP/G/Q==","shasum":"83ae79915ec34a6e52cbe8ab1534a1a6bfaf3e10","tarball":"http://registry-npm.ywwl.com/@apollo/federation/download/@apollo/federation-0.6.6-alpha.1.tgz","fileCount":243,"unpackedSize":409698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEptZCRA9TVsSAnZWagAASuYP/0iQ3zHH+JuwvAG1HPJS\nFe2nSyMzvJ7V0UilPgTrVYP/o2yZyh46z2O2ZiWK5lLhy4xwNPQ7PmnpCOSL\nrHfMAdgrG3bXIFszoxKkRgdFBfOcENG6s+s0DmkMQgkyZ6pYF5RWHGo2K+Ep\niAto+KTk5sQ/X9JJn5CISnbBx8ioxCgWUK7YJxA86yG/1rT6YVEhQ/0fOGLd\niYPufKu6cGdJKyxWq24RzCXLOkjdX8whrxywfQLsKsel+3/LwkrzcSYVhjzU\ngV6+7mmzf0Q1B2/ZEhZB/ywP1KIREcSE4f02XUuKfT8mJdDXiXycjXUL61zB\nSi764xV4FW+jogf2BnS0LaiSAi8JhOfFZCbnv2N0WJEpwPKpXb7tJcasILDC\nT1ntCBUiDNnKEBUHFO6wsLpqzlDNAo2IyKkylg+WoV31Fe/B4pQCvaJCS6Au\nfdCQTaEqTvweZj9kIXveccDKvvSfzH2mETgdwCaVcZO+yXegZowvQyllpwk9\nauNZLi8I27iAmfrUr52ED12gsV5DCosW2z6sGj/PMXk2x69OwWzTcwE/5tse\nCMEIIMcu0+h2ewqk4x1dkWhgIb5E7UAKPB8/tY/cpG2zTerSTSF/Ke9Byi4Y\n8y2zhC1e4DppDMc26MLnY5+B4u8uk561yY1oP8lGJCWBszcBQqo0YYzcBGYp\n2pvM\r\n=S848\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl96lYVjLoj0Pw5ZGaKCf+GsdLUVpxb3JophkyWaenQwIgdj8FreVU5OCy+tHbTUxpkERZFy6QyT5D0G3QjqXPER0="}],"size":75706,"noattachment":false,"key":"/@apollo/federation/-/@apollo/federation-0.6.6-alpha.1.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.6-alpha.1_1561500505082_0.35241818206576214"},"_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":1561500505237,"_cnpm_publish_time":1561500505237,"dist-tags":{"latest":"0.38.1","latest-1":"0.38.1"}}