currently my project requirement is, when a client send a query request, I need to log fetched result related details to a database, like “userIp”, ““userId”, datetime” and data they requested.
see below example:
identifiers: [“Y27183121”,“G51502105”, “G37585109”, “686330101” ],
Currently I m thinking it as make a array and pass to context so that all resolver can have access to it. This array will store details that I need to send to database via an external API call.
I m not sure what is the best place to do this. The array will be fully populated after all resolvers have been resolved. How and where can I have hold on this array after resolver has been resolved to make api call with it.