usedCoordinates

abstract fun usedCoordinates(file: File)

By default, the used coordinates are computed automatically from all modules sharing a schema. This means that changing a query in a module might trigger task execution in a completely different module. If your used coordinates do not change too often, you can opt-in to save them in a file that is read instead of checking all modules.

This is more performant but more error prone because you'll need to keep this file up to date by calling generate${service}ApolloUsedCoordinates

We recommend checking the file in source control. For an example in src/main/graphql/used-coordinates.json

Parameters

file

A Json file containing an array of GraphQL coordinates


abstract fun usedCoordinates(file: String)