Skip to content

Commit e33cc03

Browse files
author
Alexandre Oliveira
committed
- Docker Compose: Mariadb utf8mb4 and GraphQL: All Sites
1 parent 58a043b commit e33cc03

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

containers/mariadb/conf/shio.cnf

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[client]
2-
default-character-set=utf8
2+
default-character-set=utf8mb4
33

44
[mysql]
5-
default-character-set=utf8
5+
default-character-set=utf8mb4
66

77

88
[mysqld]
9-
collation-server = utf8_unicode_ci
10-
init-connect='SET NAMES utf8'
11-
character-set-server = utf8
9+
collation-server=utf8mb4_unicode_ci
10+
init-connect='SET NAMES utf8mb4'
11+
character-set-server=utf8mb4

src/main/java/com/viglet/shio/graphql/schema/query/type/ShGraphQLQTCommons.java

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ public GraphQLEnumType createSiteEnum() {
7373
final graphql.schema.GraphQLEnumType.Builder siteEnumBuilder = newEnum()
7474
.name(ShGraphQLConstants.SITES_ARG_TITLE).description("Site Names enumeration");
7575

76+
siteEnumBuilder.value("All", "all", "Entire sites");
77+
7678
shSiteRepository.findAll()
7779
.forEach(shSite -> siteEnumBuilder.value(shSite.getName(), shSite.getId(), shSite.getDescription()));
7880

0 commit comments

Comments
 (0)