(enc *encoder, n fastJsonNode)
| 1225 | } |
| 1226 | |
| 1227 | func (sg *SubGraph) toDqlJSON(enc *encoder, n fastJsonNode) error { |
| 1228 | if enc.children(n) == nil { |
| 1229 | x.Check2(enc.buf.WriteString(`{}`)) |
| 1230 | return nil |
| 1231 | } |
| 1232 | return enc.encode(n) |
| 1233 | } |
| 1234 | |
| 1235 | func (sg *SubGraph) toGraphqlJSON(genc *graphQLEncoder, n fastJsonNode, f gqlSchema.Field) error { |
| 1236 | // GraphQL queries will always have at least one query whose results are visible to users, |
no test coverage detected