- naive @SchemaMapping resolver: 6 statements (5 books/5 authors), 21 statements (20 books/5 authors) - batched @BatchMapping resolver: flat 2 statements in both cases, via DataLoader + .distinct() - dangling authorId nulls the entire GraphQL response via non-null propagation, byte-identical under both resolver strategies - 6-test suite over real HTTP against a live embedded Tomcat instance, SQL captured via a JDK dynamic proxy (StatementLoggingDataSource, reused from sdjpa4-demo) - docs/05: two Boot 4.1 packaging changes hit along the way (DataSourceAutoConfiguration's new package, Jackson 3 by default) - root README: add row for graphql-dataloader; fix openapi-versioning's placeholder link now that post 7477 is live
22 lines
395 B
YAML
22 lines
395 B
YAML
spring:
|
|
application:
|
|
name: graphql-dataloader
|
|
sql:
|
|
init:
|
|
mode: always
|
|
jpa:
|
|
hibernate:
|
|
ddl-auto: none
|
|
open-in-view: false
|
|
properties:
|
|
hibernate:
|
|
show_sql: false # real statements come from StatementLoggingDataSource instead
|
|
graphql:
|
|
graphiql:
|
|
enabled: true
|
|
|
|
logging:
|
|
level:
|
|
root: WARN
|
|
com.ankurm.graphqldataloader: INFO
|