MCPcopy Create free account
hub / github.com/Effect-TS/effect / encodeVariables

Function encodeVariables

packages/effect/src/internal/graphql.ts:209–212  ·  view source on GitHub ↗
(
    variables: GraphQL.Variables<Op> | undefined
  )

Source from the content-addressed store, hash-verified

207 const decode = Schema.decodeUnknownEffect(operation.result)
208
209 const encodeVariables = (
210 variables: GraphQL.Variables<Op> | undefined
211 ): Effect.Effect<unknown, GraphQLClientError, Op["variables"]["EncodingServices"]> =>
212 Effect.catch(encode(variables ?? {}), schemaFail((description) => new EncodeError({ description })))
213
214 const decodeData = (
215 data: unknown

Callers 1

buildRequestFunction · 0.85

Calls 2

schemaFailFunction · 0.85
encodeFunction · 0.50

Tested by

no test coverage detected