Use raise from rather than raise where appropriate Have a logic to reduce graphql page length if 400 Bad Request is returned