menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Platform
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team

Federation and Custom Directives

November 14, 2019 at 5:40am

Federation and Custom Directives

November 14, 2019 at 5:40am (Edited 5 months ago)
Hey All, We are trying out Apollo Federation on an existing GraphQL service which uses custom directives.
The error we are getting is from our gateway server when it performs introspection on startup:
-> is a type system directive, but only executable directives are permitted. Executable directives exist for the following locations: QUERY, MUTATION, SUBSCRIPTION, FIELD, FRAGMENT_DEFINITION, FRAGMENT_SPREAD, INLINE_FRAGMENT, VARIABLE_DEFINITION
Any ideas?

November 20, 2019 at 3:47am
I'm also looking for a reference implementation of custom directives with federation.
like-fill
1
  • reply
  • like

February 14, 2020 at 1:48pm
on this example https://www.apollographql.com/docs/graphql-tools/schema-directives/#enforcing-access-permissions they are implementing a custom directive on OBJECT | FIELD_DEFINITION if you're doing something similar I think the problem is with OBJECT as they don't support directives on OBJECT location
  • reply
  • like