Skip to content

Commit

Permalink
chore: add deprecation warning on using runtime directives
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill committed Dec 26, 2024
1 parent 01ea3be commit ee7aed2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/config/from_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ fn process_schema_directives<T: DirectiveCodec + Default>(
let mut res = Valid::succeed(T::default());
for directive in schema_definition.directives.iter() {
if directive.node.name.node.as_ref() == directive_name {
tracing::warn!("@{} directive definition in the graphql schema file is deprecated. Please, refer to blog post https://tailcall.run/blog/migrating-to-graphql-configuration-v2/", directive_name);
res = T::from_directive(&directive.node);
}
}
Expand Down

0 comments on commit ee7aed2

Please sign in to comment.