GelDB's entire client code is being loaded on the client side. I have ensured that createClient is being called only on the server side but getting this code loaded on the client side.
There is a chunk which has following code so I know that it's GelDB query and client code.
function pa(e) {
return e.querySingle(`select User {
*,
organization:{
name,
@role
}
}
filter .identity = (global ext::auth::ClientTokenIdentity);`)