Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Collect directives from applications #89

Open
mattvb91 opened this issue Oct 11, 2020 · 0 comments
Open

Collect directives from applications #89

mattvb91 opened this issue Oct 11, 2020 · 0 comments
Labels
base @corejam/base package
Projects

Comments

@mattvb91
Copy link
Member

Besides collecting resolvers from corejam applications and merging them, we need to also collect directives that each application defines and merge it into the top level server.

An example of DerShop server export:

const pluginProperties = {
  resolvers,
  directives,
  schemas: ["dershop"],
};

export { getPluginContext } from "./resolvers";

https://www.apollographql.com/docs/apollo-server/schema/creating-directives/#enforcing-access-permissions

@mattvb91 mattvb91 created this issue from a note in Corejam 1.0 (To do) Oct 11, 2020
@mattvb91 mattvb91 added the base @corejam/base package label Oct 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
base @corejam/base package
Projects
Corejam 1.0
  
To do
Development

No branches or pull requests

1 participant