Tina Cloud Packages


  • gql package:
  • the main backend package, builds the schema and resolves it with the given datasource. Provides build and resolve values

  • client package:

  • authenticates the user with our cloud service
  • talk to content API via GraphQL (this can be local or on our server, makes no difference)
  • massage Tina form data to match the shape of the GraphQL mutation
  • takes data from GraphQL response and initializes forms with it
  • coordinates onChange values from Tina to stay in sync with the data (the author example I showed you)

  • graphql-helpers package:

  • used by gql and client packages

    • generates type names (ex. MyPostDocument)
    • Also splits the query into respective “nodes”
  • demo:

  • a development tool used to inspect what’s going on under the hood