Closed Wizzel1 closed 2 years ago
I am testing my code with these stubs:
when( () => graphQLHelper.query<dynamic>( query: GetNotesByAssessmentIdQuery.getNotesByAssessmentId, variables: <String, dynamic>{ 'id': assessmentId, 'exerciseId': exerciseId, 'userId': userId }, ), ).thenAnswer( (_) => Future.value( QueryResult<dynamic>( data: jsonResponse, source: QueryResultSource.network, parserFn: (data) {}, ), ), );
but I am getting an error when updating to 5.1.0.
The named parameter options is required.
I have tried to use a QueryOptions object but that requires a document.
QueryOptions
So what kind of "options" do I have to provide in this case?
I am testing my code with these stubs:
but I am getting an error when updating to 5.1.0.
The named parameter options is required.
I have tried to use a
QueryOptions
object but that requires a document.So what kind of "options" do I have to provide in this case?