Pm.require in GraphQL Collection before query

I am trying to use the GraphQL collection and have noticed many differences between the Rest collection folder and the GraphQL collection folder. I have worked around most of them but I cannot seem to use my package-library inside the before query in the graphql collection. I have authorization scripts we have written and do not want to copy the code into each graphql call.

using the following code in my before query throws an error ‘pm.require is not a function’

const authUtilities = pm.require('@auctionedge/auth-utilities');

How can I use my package-library inside my GraphQL Collection.