Closed bellomimarc closed 2 years ago
Hi @bellomimarc. You need to provide a resolver
to use schema resolution. In your example it would look something like:
const resolver = type.createResolver(newType);
const val = type.fromBuffer(buf, resolver);
See also https://github.com/mtth/avsc/wiki/Advanced-usage#schema-evolution for more context.
Thanks!
Hi! I encounter a problem in this script:
Based on avro schema resolution, I expect that I can do that but I'm receiving an error "trailing data" when I call the fromBuffer function. Why does this occur?