打開 graphql playground,能夠進行測試前端
query POEMS {
poems {
id
uuid
# 標題
title
# 詩詞曲賦文
kind
# 簡介
intro
# 詩詞內容
paragraphs
# 賞析
appreciation
translation
annotations
# 名句
phrases {
id
}
# 標籤
tags {
id
}
# 做者
author {
id
}
}
}
複製代碼
query AUTHORS {
authors {
id
uuid
name
intro
birthYear
deathYear
# 朝代
dynasty
baikeUrl
# 該做者的詩詞
poems {
id
}
}
}
複製代碼
# 名句
query PHRASES {
phrases {
id
# 所在的詩詞
poem {
id
}
}
}
複製代碼
query TAGS {
tags {
id
name
}
}
複製代碼