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
docker network create -d macvlan --subnet=192.168.178.0/24 --ip-range=192.168.178.248/29 --gateway=192.168.178.1 -o parent=ovs_eth1 macvlan-ovs_eth1 | |
https://mxtoolbox.com/subnetcalculator.aspx |
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
val graphQLQueryRequest = GraphQLQueryRequest( | |
MoviesGraphQLQuery(), | |
MoviesProjectionRoot().also { movie -> | |
movie.title() | |
movie.bar() | |
movie.javaData().also { javaData -> | |
javaData.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
<plugin> | |
<groupId>org.neo4j</groupId> | |
<artifactId>neo4j-graphql-augmented-schema-generator-maven-plugin</artifactId> | |
<version>1.4.1-SNAPSHOT</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>generate-schema</goal> | |
</goals> | |
<configuration> |
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 { | |
movies{ | |
title | |
bar | |
javaData { | |
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
@DgsComponent | |
class AdditionalDataFetcher { | |
@DgsData(parentType = "Movie", field = "bar") | |
fun bar(): String { | |
return "foo" | |
} | |
@DgsData(parentType = "Movie", field = "javaData") | |
fun javaData(env: DataFetchingEnvironment): List<JavaData> { | |
val title = env.getSource<Map<String, *>>()["title"] |
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
@DgsComponent | |
open class GraphQLConfiguration { | |
@Value("classpath:neo4j.graphql") | |
lateinit var graphQl: Resource | |
@Autowired(required = false) | |
lateinit var dataFetchingInterceptor: DataFetchingInterceptor | |
lateinit var schemaBuilder: SchemaBuilder |
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
extend type Movie { | |
bar: String @ignore | |
javaData: [JavaData!] @ignore | |
} | |
type JavaData { | |
name: String | |
} | |
extend type Query { |
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 Movie { | |
title: String | |
} |
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
{ | |
genre { | |
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
type Movie { | |
id: ID | |
title: String | |
genres: [Genre!] @relation(name: "HAS_GENRE", direction: OUT) | |
} | |
type Genre { | |
id: ID | |
name: String | |
} | |
input GenreOptions { |
NewerOlder