- They are doing it gradually
- They use
Nouninstead ofEntityto name the graphql entities - So far migrated
UserandTweetnouns - Struggled with de-duplicating response
- Plan is to migrate gradually
- They use Strato, their internal technology for virtual federated database, to power all graphql queries by plugging Strato with FB's Thrift services which provides them type safety
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| angular | |
| .module('app', []) | |
| .config(config); | |
| config.$inject = ['$provide']; | |
| function config($provide) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {foo, bar} from '../foo-bar'; | |
| import * as abc from '../util' | |
| import * as https from 'https' | |
| describe("asdf", () => { | |
| test("foo", async () => { | |
| jest.spyOn(https, 'request').mockImplementation(() => jest.fn() as any); | |
| await foo('https://example.org'); | |
| expect(https.request).toHaveBeenCalledWith('https://example.org'); | |
| }) |
OlderNewer