diff --git a/packages/schema/src/hooks/resolve.ts b/packages/schema/src/hooks/resolve.ts index c891ec1b65..ac6364126c 100644 --- a/packages/schema/src/hooks/resolve.ts +++ b/packages/schema/src/hooks/resolve.ts @@ -3,13 +3,13 @@ import { compose } from '@feathersjs/hooks' import { Resolver, ResolverStatus } from '../resolver' const getContext = (context: H) => { - return { + return Object.freeze({ ...context, - params: { + params: Object.freeze({ ...context.params, - query: {} - } - } + query: Object.freeze({}) + }) + }) } const getData = (context: H) => {