Tips:
- Read the introduction for each topic and dive deep only when needed
- Official documentation is, most of the time, the best source
const { graphqlExpress } = require('apollo-server-express'); | |
const { makeExecutableSchema } = require('graphql-tools'); | |
const { importSchema } = require('graphql-import'); | |
const resolvers = require('./graphql/resolvers'); | |
const setup = app => { | |
const schema = makeExecutableSchema({ | |
typeDefs: importSchema('src/graphql/schema.graphql'), | |
resolvers | |
}); |
componentDidUpdate(prevProps: Props) { | |
console.log('UPDATE'); | |
Object.keys(this.props) | |
.filter(key => this.props[key] !== prevProps[key]) | |
.map(key => { | |
console.log( | |
'changed property:', | |
key, | |
'from', | |
prevProps[key], |
{ | |
"name": "Test", | |
"baseURL": "__baseURL__", | |
"otherBaseURL": "__baseURL__" | |
} |
Tips: