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
| export function useMeQuery(baseOptions?: Apollo.QueryHookOptions<MeQuery, MeQueryVariables>) { | |
| const options = {...defaultOptions, ...baseOptions} | |
| return Apollo.useQuery<MeQuery, MeQueryVariables>(MeDocument, options); | |
| } |
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
| schema: schema.graphql | |
| overwrite: true | |
| documents: "./src/**/*.gql" | |
| generates: | |
| ./src/shared/generated/graphql.tsx: | |
| plugins: | |
| - typescript | |
| - typescript-operations | |
| - typescript-react-apollo | |
| config: |
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
| query me { | |
| me { | |
| id | |
| displayName | |
| albums { | |
| name | |
| photos { | |
| name | |
| } |
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
| # ------------------------------------------------------ | |
| # THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY) | |
| # ------------------------------------------------------ | |
| type User { | |
| id: String! | |
| displayName: String! | |
| description: String! | |
| dob: DateTime! | |
| photos: [Photo!]! |
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 { Module } from '@nestjs/common'; | |
| import { GraphQLModule } from '@nestjs/graphql'; | |
| import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; | |
| @Module({ | |
| imports: [ | |
| GraphQLModule.forRoot<ApolloDriverConfig>({ | |
| driver: ApolloDriver, | |
| autoSchemaFile: join(process.cwd(), 'src/schema.gql'), | |
| }), |
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 { Module } from '@nestjs/common'; | |
| import { GraphQLModule } from '@nestjs/graphql'; | |
| import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; | |
| @Module({ | |
| imports: [ | |
| GraphQLModule.forRoot<ApolloDriverConfig>({ | |
| driver: ApolloDriver, | |
| debug: false, | |
| playground: false, |
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 { Parent, Query, ResolveField, Resolver } from '@nestjs/graphql'; | |
| import { AlbumService } from '@src/album/album.service'; | |
| import { Album } from '@src/album/entities/album.entity'; | |
| import { Photo } from '@src/photo/entities/photo.entity'; | |
| import { PhotoService } from '@src/photo/photo.service'; | |
| import { User } from './entities/user.entity'; | |
| import { UserService } from './user.service'; |
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
| query weather { | |
| weather { | |
| id | |
| current { | |
| temp | |
| weather { | |
| id | |
| main | |
| } | |
| } |
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
| query weather { | |
| weather { | |
| id | |
| current { | |
| temp | |
| weather { | |
| id | |
| main | |
| } | |
| } |
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
| type WeatherObject { | |
| id: Int | |
| main: String | |
| } | |
| type CurrentWeather { | |
| temp: Float | |
| weather: [WeatherObject]! | |
| } |
NewerOlder