Skip to content

Commit ddb1dfa

Browse files
committed
Basic setup of the new strapi graphql system
Probably needs a bit of tidying up, but its a working start. Still need to implement all the different grahql queries
1 parent bea0789 commit ddb1dfa

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module Cms
2+
module Providers
3+
module Strapi
4+
module Queries
5+
class PageTitle
6+
def self.fields(name)
7+
<<~GRAPHQL.freeze
8+
#{name} {
9+
title
10+
subText
11+
titleVideoUrl
12+
#{SharedFields.image_fields("titleImage")}
13+
}
14+
GRAPHQL
15+
end
16+
end
17+
end
18+
end
19+
end
20+
end

spec/support/cms/providers/strapi/schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)