Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
avsc null default
node v12.22.12
version:
1.0.0
endpoint
share
tweet
const a = require("avsc") const demoType = a.Type.forSchema({ type: 'record', fields: [ {name: 'demo', type: ['null', 'string'], default: null} ] }); const demoBuf = demoType.toBuffer({}) demoType.fromBuffer(demoBuf)
Loading…
no comments
sign in
to comment