use_lazy_query library


useLazyQuery({QueryOptions queryOptions, GraphQLClient client, HookOptions hookOptions = const HookOptions(true)}) QueryOperationResult<Map<String, dynamic>, _FetchFunction>
Similar to useQuery, however, this hook won't run immediately, making it more similar to the useMutation hook, which returns a function that is bound to the hook internal state. The fetch function returns a Future<Map<String, dynamic>> that will also throw an Exception, allowing imperative usage.