Class SQLMutationDataFetcher

java.lang.Object
io.github.qubitpi.athena.example.books.application.SQLMutationDataFetcher
All Implemented Interfaces:
graphql.schema.DataFetcher<MetaData>

public class SQLMutationDataFetcher extends Object implements graphql.schema.DataFetcher<MetaData>
SQLMutationDataFetcher saves file meta data into a SQL data storage via a DataSource.
  • Constructor Details

    • SQLMutationDataFetcher

      @Inject public SQLMutationDataFetcher(DataSource dataSource)
      Constructor.
      Parameters:
      dataSource - a client object against a SQL database to save meta data into
      Throws:
      NullPointerException - if dataSource is null
  • Method Details

    • get

      public MetaData get(graphql.schema.DataFetchingEnvironment dataFetchingEnvironment) throws Exception
      Specified by:
      get in interface graphql.schema.DataFetcher<MetaData>
      Throws:
      Exception