-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added partial request printing functions #19
Merged
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
84d7459
improve readme
foxfriends af8a5ba
Allow using field with a block in place of field object
foxfriends f86ec07
Update readme to include new changes
foxfriends 026f8ec
Cheap implementation of fragment that doesn't use actual GraphQL Frag…
foxfriends e49f44c
Merge pull request #1 from OinkIguana/develop
foxfriends b30e4bc
Add fragment docs to readme
foxfriends 6d0f370
Fix tests
foxfriends f12346a
Add separate methods to print the different parts of the request sepa…
foxfriends fc7a792
Use spaces instead of newlines for request format
foxfriends e0f66c2
Rewrite printing operations to optionally escape quotes
foxfriends c6c616e
update readme a bit
foxfriends 1a8cd62
Change function to 'defineFragment'
foxfriends 0d72f43
Merge branch 'master' into develop
foxfriends e3ab2e6
Merge branch 'master' of https://github.com/VerachadW/kraph
foxfriends 8b2ebb9
Merge branch 'master' of github.com:VerachadW/kraph
foxfriends f703ac2
Use an enum to choose print format and write tests to cover all formats
foxfriends f1e4dd0
Add note about variables
foxfriends File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package me.lazmaid.kraph.lang | ||
|
||
/** | ||
* Created by OinkIguana on 10/25/2017 AD. | ||
*/ | ||
|
||
// TODO: implement variables | ||
internal class Variables() { | ||
fun print(): String? = null | ||
} |
This file contains 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
8 changes: 6 additions & 2 deletions
8
...lazmaid/kraph/lang/relay/InputAgrument.kt → ...lazmaid/kraph/lang/relay/InputArgument.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
package me.lazmaid.kraph.lang.relay | ||
|
||
import me.lazmaid.kraph.lang.Argument | ||
import me.lazmaid.kraph.lang.PrintFormat | ||
|
||
/** | ||
* Created by VerachadW on 10/2/2016 AD. | ||
*/ | ||
|
||
internal class InputArgument(args: Map<String, Any>) : Argument(args) { | ||
override fun print(prettyFormat: Boolean, previousLevel: Int): String { | ||
return "(input: { ${print(args, prettyFormat)} })" | ||
override fun print( | ||
format: PrintFormat, | ||
previousLevel: Int | ||
): String { | ||
return "(input: { ${print(args, format) } })" | ||
} | ||
} |
This file contains 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a note here that
requestVariableString()
always return null for now. We will implement this after we support the variable.