Idempotent requests

It would be great to have an opt-in mechanism for GraphQL / REST requests, to first query and filter/match to know whether;

a. the entity is not there yet, and the ‘body’ of the node needs execution
b. the entity is there already, and instead return the queried value (possibly with a small mapping function applied to the result.)