use of com.example.graphql.client.betterbotz.products.InsertProductsMutation in project stargate by stargate.
the class ApolloTest method insertProduct.
private InsertProductsMutation.InsertProducts insertProduct(ApolloClient client, ProductsInput input) {
InsertProductsMutation mutation = InsertProductsMutation.builder().value(input).build();
InsertProductsMutation.Data result = getObservable(client.mutate(mutation));
assertThat(result.getInsertProducts()).isPresent();
return result.getInsertProducts().get();
}
Aggregations