graphql-engine/server/src-lib/Hasura/GraphQL/Parser
Antoine Leblanc 4815fcd500 server: progress on generic metadata
This PR generalizes a bunch of metadata structures.

Most importantly, it changes `SourceCache` to hold existentially quantified values:
```
data BackendSourceInfo =
  forall b. Backend b => BackendSourceInfo (SourceInfo b)

type SourceCache = HashMap SourceName BackendSourceInfo
```

This changes a *lot* of things throughout the code. For now, all code using the schema cache explicitly casts sources to Postgres, meaning that if any non-Postgres `SourceInfo` makes it to the cache, it'll be ignored.

That means that after this PR is submitted, we can split work between two different aspects:
  - creating `SourceInfo` for other backends
  - handling those other sources down the line

GitOrigin-RevId: fb9ea00f32e840fc33c5467896fb1dfa5283ab42
2021-01-20 00:32:45 +00:00
..
Class Merge oss/master onto mono/main 2020-11-12 22:37:19 +05:30
Internal server: expand metadata storage class with async actions and core metadata operations (#184) 2020-12-14 04:31:20 +00:00
Class.hs server: progress on generic metadata 2021-01-20 00:32:45 +00:00
Collect.hs Merge oss/master onto mono/main 2020-11-12 22:37:19 +05:30
Column.hs server: don't memoize backend scalar type reps through WithScalarType (#136) 2020-12-03 12:22:24 +00:00
Monad.hs Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00
Schema.hs Merge pull request #113 from hasura/karthikeyan/remote-schema-permissions 2020-12-21 09:12:35 +00:00