-
-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate
graphql
alias for gql
tag function
Because importing the same thing from two different import points will increase the final bundle size. If you want a different name for the tag function, then use `as` syntax, such as: ```ts import {gql as graphql} from 'apollo-angular'; ```
- Loading branch information
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
'apollo-angular': patch | ||
--- | ||
|
||
Deprecate `graphql` alias for `gql` tag function | ||
|
||
Because importing the same thing from two different import points will | ||
increase the final bundle size. If you want a different name for the tag | ||
function, then use `as` syntax, such as: | ||
|
||
```ts | ||
import {gql as graphql} from 'apollo-angular'; | ||
``` |
This file contains 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
This file contains 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