new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Temporal · Develop · all subjects

nexus/service contracts

2 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Define Nexus Service contract with service and operations

Define a Nexus Service contract using `nexus-rpc` library. The contract specifies the service name and operations with their input and output types. Example: `export const helloService = nexus.service('hello', { echo: nexus.operation<EchoInput, EchoOutput>(), hello: nexus.operation<HelloInput, HelloOutput>() })`. Each operation is defined with its input and output types as TypeScript interfaces.

TypeScript SDK does not support Protobuf JSON encoding by default

The TypeScript SDK does not support Protobuf JSON encoding by default. If passing Protobuf payloads in a polyglot Nexus environment, use the `ProtobufJsonPayloadConverter` from the protobufs module instead.

Give your agent this brain