Skip to content

ASP Net Core Mongo DB web api. Using generic repository

Notifications You must be signed in to change notification settings

cancanbolat/films-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP Net Core Mongo DB Web Api. Using Generic Repository

Swagger UI

Database Queries

use FilmsApi


db.createCollection('Films')

db.Films.insertMany([
	{Title: 'The Falcon and the Winter Soldier', Year: '2021', Imdb: 8.0},
	{Title: 'WandaVision', Year: '2021', Imdb: 8.1},
	{Title: 'Attack on Titan', Year: '2013', Imdb: 8.9},
	{Title: 'Line of Duty', Year: '2012', Imdb: 8.7},
	{Title: 'The Walking Dead', Year: '2010', Imdb: 8.2},
])


db.createCollection('Cast')

db.Cast.insertMany([
	{Name: 'Gil', Surname: 'Bellows'},
	{Name: 'Clancy', Surname: 'Brown'},
	{Name: 'William', Surname: 'Sadler'},
	{Name: 'Morgan' , Surname: 'Freeman'}
])