How to combine use together graphql modules and graphql directives

I create graphql yoga server using modules:

const application = createApplication({ modules: MY_MODULES_ARRAY })

const yoga = createYoga({
    ...
    plugins: [useGraphQLModules(application)]
    ...
})

According to the directives guide I need to patch a schema:
the-guild.dev/graphql/tools/docs/schema-directives

How should I combine directives and modules?

Should I get the schema from application.schema, patch it and then createYoga() with new patched schema instead of modules?

Read more here: Source link