$ sudo apt-get update
$ sudo apt-get -y upgrade
$ sudo apt-get dist-upgradevia askubuntu
| // sample graphql server deployed with firebase functions | |
| // pulling some basic stockmarket data from a firebase db | |
| const functions = require('firebase-functions'); | |
| const admin = require('firebase-admin'); | |
| const express = require('express'); | |
| const graphqlHTTP = require('express-graphql'); | |
| const values = require('lodash.values'); | |
| const { GraphQLSchema, GraphQLObjectType, GraphQLList, GraphQLString } = require('graphql'); | |
| // Init express |
| // sample graphql server deployed with firebase functions | |
| // minimal server setup | |
| // via http://graphql.org/graphql-js/running-an-express-graphql-server/ | |
| const functions = require('firebase-functions'); | |
| const express = require('express'); | |
| const graphqlHTTP = require('express-graphql'); | |
| const { buildSchema } = require('graphql'); | |
| // Init express | |
| const app = express(); |
$ sudo apt-get update
$ sudo apt-get -y upgrade
$ sudo apt-get dist-upgradevia askubuntu
# checkout remote branch
$ git fetch
$ git checkout <remote-branch-name>
# list local branches
$ git branch
# list all branches
$ git branch -a