4 ms·
from the tutorial: const typeDefs = ` type Query { info: String! feed: [Link!]! } type Link { id: ID! description: String! url: St
by fizb 8y ago
from the tutorial:
const typeDefs = `
type Query {
info: String!
feed: [Link!]!
}
type Link {
id: ID!
description: String!
url: String!
}
`
Why is this rubbish in backticks accepted? It is especially stunning to see this in "modern" ES6+ code explaining the newest hype. It's not even mentioned that it sucks, it's presented like proper code.
- tomnipotent 8y agoBecause it's a string?
- danlugo92 8y agoIt could be done in a type safe manner as opposed to magic strings.
- argestes 8y agoYeah you can do SQL with Hibernate too. It works but it's a nightmare
- tomnipotent 8y agoNo, because it's meant to be a declarative language and not ECMA-based. At least spend five minutes understanding what something is before throwing shade.