Last active
May 17, 2020 15:53
-
-
Save svenhakvoort/9ff6c01ca9d30da5d13f85806a5b460c to your computer and use it in GitHub Desktop.
DemoModel
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
package com.example.demographql.model | |
import com.expediagroup.graphql.annotations.GraphQLID | |
import org.springframework.data.annotation.Id | |
import java.util.* | |
data class Demo( | |
val someText: String | |
) { | |
@GraphQLID @Id | |
var id: String = UUID.randomUUID().toString() | |
} |
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
package com.example.demographql.repository | |
import com.example.demographql.model.Demo | |
import org.springframework.data.mongodb.repository.ReactiveMongoRepository | |
import org.springframework.stereotype.Repository | |
@Repository | |
interface DemoRepository: ReactiveMongoRepository<Demo, String> { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment