makeCustomNode returns a fastJsonNode that stores the given val for a @custom GraphQL field.
(attr uint16, val []byte)
| 243 | |
| 244 | // makeCustomNode returns a fastJsonNode that stores the given val for a @custom GraphQL field. |
| 245 | func (enc *encoder) makeCustomNode(attr uint16, val []byte) (fastJsonNode, error) { |
| 246 | fj := enc.newNode(attr) |
| 247 | if err := enc.setScalarVal(fj, val); err != nil { |
| 248 | return nil, err |
| 249 | } |
| 250 | enc.setCustom(fj) |
| 251 | |
| 252 | return fj, nil |
| 253 | } |
| 254 | |
| 255 | const ( |
| 256 | // Value with most significant bit set to 1. |
no test coverage detected