Defining mongo resource IDs globally