# Type on the wire null, expect type record

**URL:** <https://forum.dfinity.org/t/type-on-the-wire-null-expect-type-record/8263>\
**Category:** Developers\
**Tags:** Functional-Programming, candid\
**Created:** [November 1, 2021, 9:00am UTC](https://forum.dfinity.org/t/type-on-the-wire-null-expect-type-record/8263 "2021-11-01T09:00:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![0x000000000000000](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/0x000000000000000/32/6292_2.png) [@0x000000000000000](https://forum.dfinity.org/u/0x000000000000000)\
**Post date:** [November 1, 2021, 9:00am UTC](https://forum.dfinity.org/t/type-on-the-wire-null-expect-type-record/8263/1 "2021-11-01T09:00:49Z")

</div>

Does anyone know how to pass the record type parameter to the canistermethod through JS

---

<div class="post-metadata">

**Author:** ![claudio](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/claudio/32/322_2.png) [@claudio](https://forum.dfinity.org/u/claudio)\
**Post date:** [November 1, 2021, 11:44am UTC](https://forum.dfinity.org/t/type-on-the-wire-null-expect-type-record/8263/2 "2021-11-01T11:44:13Z")

</div>

Does this help?

> **[Internet Computer | Documentation](https://smartcontracts.org/docs/candid-guide/candid-types.html)**
>
> Documentation for the internet computer.

> **[Internet Computer | Documentation](https://smartcontracts.org/docs/candid-guide/candid-types.html#type-record)**
>
> Documentation for the internet computer.
