updated
stringclasses
4 values
metadata
dict
action
stringclasses
1 value
sourceName
stringclasses
4 values
body
stringlengths
97
1.08k
url
stringclasses
20 values
format
stringclasses
1 value
title
stringclasses
20 values
embedding
sequencelengths
384
384
2024-05-20T17:32:23.500Z
{ "contentType": "Code Example", "productName": null, "tags": [ "Java", "Spring" ], "version": null }
created
devcenter
As you can see, I’m using an auto-closeable try-with-resources which will automatically close the client session at the end. This helps me to keep the code clean and simple. Some of you may argue that it is actually too simple because transactions (and write operations, in general) can throw exceptions, and I’m not handling any of them here… You are absolutely right and this is an excellent transition to the next part of this article. ## Exception management Transactions in MongoDB can raise exceptions for various reasons, and I don’t want to go into the details too much here, but since MongoDB 3.6, any write operation that fails can be automatically retried once. And the transactions are no different. See the documentation for retryWrites. If retryable writes are disabled or if a write operation fails twice, then MongoDB will send a MongoException (extends RuntimeException) which should be handled properly.
https://www.mongodb.com/developer/code-examples/java/rest-apis-java-spring-boot
md
REST APIs with Java, Spring Boot, and MongoDB
[ -0.06570691615343094, -0.00028689877944998443, 0.05140234902501106, -0.04029842093586922, 0.01408341247588396, -0.039414696395397186, 0.020902082324028015, 0.04618111252784729, -0.016687754541635513, -0.05932946503162384, -0.021208424121141434, -0.03566288203001022, -0.007504936773329973, 0.0984702780842781, -0.029951199889183044, 0.0061104572378098965, -0.017786506563425064, 0.03574834018945694, -0.04935130104422569, 0.042890507727861404, 0.017440205439925194, -0.013487448915839195, 0.0031478027813136578, -0.018888236954808235, 0.015306349843740463, 0.07849223166704178, -0.00004442097633727826, -0.038705430924892426, -0.04277984797954559, -0.23226520419120789, -0.01600293070077896, -0.05589833855628967, -0.014290299266576767, -0.08148831874132156, 0.011204722337424755, -0.0019572998862713575, -0.04951801896095276, 0.04657622426748276, -0.04631037637591362, 0.03623832017183304, 0.07447914034128189, 0.04829680174589157, -0.03933635354042053, -0.05922484025359154, -0.047133445739746094, -0.06965319067239761, 0.013870473951101303, -0.03320162370800972, 0.030145442113280296, -0.0446971170604229, -0.030577896162867546, -0.03894701600074768, 0.00971626490354538, 0.026880118995904922, 0.0113237788900733, 0.03614036366343498, 0.04483423009514809, 0.044092338532209396, -0.014408539049327374, 0.034520648419857025, 0.07623302936553955, 0.06394961476325989, -0.12783414125442505, 0.02798675373196602, 0.06597591936588287, 0.03215303644537926, -0.03137616440653801, 0.014374630525708199, 0.028956139460206032, 0.03439969941973686, -0.022135067731142044, -0.022662701085209846, -0.007548177614808083, 0.05426570028066635, 0.03660013899207115, -0.0017963284626603127, -0.011657779105007648, -0.06071033328771591, 0.014527104794979095, 0.05746205151081085, -0.08936677128076553, -0.07187435775995255, -0.003037611721083522, 0.0355079360306263, -0.03258375823497772, -0.031038235872983932, 0.03354892134666443, -0.01767793484032154, 0.05853832885622978, 0.005464179906994104, 0.01315494254231453, 0.015220782719552517, 0.05533648282289505, 0.026489827781915665, -0.0710919201374054, 0.015124529600143433, 0.0657552108168602, 0.03134891018271446, -0.05184555798768997, 0.22306042909622192, -0.005675897002220154, 0.022233746945858, -0.004881036467850208, -0.01815643161535263, 0.02591824159026146, -0.03638523072004318, -0.004334196913987398, -0.02058001607656479, -0.03838659077882767, -0.019080068916082382, -0.01062396727502346, -0.020068176090717316, 0.06250937283039093, -0.05761754885315895, 0.011781946755945683, 0.07638572156429291, 0.027197638526558876, 0.01971924677491188, -0.03694426640868187, 0.013696997426450253, -0.015855157747864723, 0.01916707679629326, 0.025026418268680573, -0.005068309139460325, 0.022602831944823265, -0.07100296765565872, 0.0715508982539177, 0.1023755595088005, 0.0038648738991469145, 0.01782694272696972, 0.006219294387847185, -0.01571112871170044, -0.07060180604457855, -0.04312142729759216, 0.023633792996406555, 0.006571103353053331, -0.03248254954814911, -0.013867102563381195, 0.03167868033051491, -0.005186587106436491, 0.019331973046064377, -0.08699935674667358, -0.04305668920278549, -0.11725843697786331, -0.009453704580664635, 0.12511645257472992, -0.015717796981334686, 0.08575741946697235, -0.05510774254798889, -0.046253301203250885, 0.006019975058734417, 0.002879194915294647, -0.056950218975543976, -0.03776024281978607, 0.011972569860517979, 0.03963743895292282, 0.05387314781546593, 0.049715571105480194, -0.03541874140501022, -0.008257112465798855, -0.02828655019402504, -0.005073831882327795, -0.05035730078816414, 0.06347678601741791, 0.016503548249602318, -0.06983214616775513, -0.011700984090566635, 0.022419201210141182, -0.022496771067380905, -0.024093588814139366, -0.015621965751051903, 0.012413360178470612, -0.0691208615899086, -0.03883156552910805, 0.061131637543439865, 0.009889510460197926, -0.04320988431572914, -0.054927926510572433, -0.0047128028236329556, 0.02073591947555542, 0.03550208732485771, 0.0023876496125012636, -0.04593363031744957, 0.013623212464153767, 0.017435405403375626, -0.07476034015417099, -0.009264062158763409, -0.035770758986473083, 0.054324422031641006, 0.04605432599782944, -0.03460739180445671, -0.04340001195669174, 0.020209796726703644, -0.012559091672301292, -0.05396486446261406, -0.01675327867269516, -0.002095039002597332, -0.07735282182693481, 0.03199212998151779, -0.059476740658283234, 0.08363909274339676, 0.060251299291849136, 0.003424343653023243, 0.04338262230157852, 0.04482105001807213, 0.058746468275785446, -0.017938686534762383, -0.009567761793732643, 0.0255955271422863, -0.009612525813281536, -0.03310791775584221, 0.026746124029159546, -0.0004720874421764165, 0.015404891222715378, -0.042415596544742584, -0.003981859888881445, 0.0020482325926423073, 0.07515028864145279, 0.02838081680238247, 0.013575203716754913, 0.020565330982208252, -0.025630680844187737, -0.004161633085459471, -0.24783384799957275, -0.0195302814245224, -0.014722310937941074, -0.013161879032850266, 0.03532583639025688, -0.05218900367617607, 0.028948169201612473, -0.032303955405950546, -0.04407893121242523, 0.03308279812335968, 0.06685683131217957, -0.007074618246406317, -0.003650218714028597, -0.01016953680664301, 0.010365007445216179, 0.03823067620396614, -0.04534148424863815, 0.01043026801198721, -0.037359971553087234, 0.022877253592014313, -0.023258065804839134, -0.023165639489889145, -0.025309542194008827, -0.06785941123962402, 0.024722810834646225, 0.03711096569895744, 0.22009235620498657, 0.026023900136351585, 0.00018588350212667137, -0.06370489299297333, 0.04625847190618515, 0.01758602075278759, -0.015279341489076614, -0.11553782969713211, 0.04673083499073982, 0.017635131254792213, 0.010215453803539276, 0.018681369721889496, 0.03256835788488388, -0.067003533244133, -0.03188897296786308, 0.05619761720299721, -0.004791503772139549, -0.1056549921631813, 0.007169592194259167, -0.013939195312559605, -0.047366924583911896, -0.0065480065532028675, -0.008333231322467327, 0.0390365906059742, -0.0005819314974360168, -0.033149853348731995, 0.02937702089548111, 0.03125789389014244, -0.030617712065577507, -0.025062786415219307, -0.09495164453983307, 0.009829648770391941, -0.007445602212101221, 0.03534654155373573, -0.0019291031640022993, -0.036690518260002136, 0.044603072106838226, 0.016429532319307327, 0.06100322678685188, 0.022702915593981743, 0.04583442956209183, -0.01643184758722782, -0.009684426710009575, -0.047690678387880325, -0.015149096958339214, 0.12218399345874786, -0.018709050491452217, -0.028409797698259354, 0.051330845803022385, 0.05014564096927643, 0.03711482137441635, -0.045194000005722046, -0.0702444389462471, -0.014666397124528885, 0.02529706247150898, -0.040708988904953, 0.03780726343393326, 0.04084046930074692, 0.03529368340969086, 0.05758660286664963, 0.038045138120651245, 0.007528543937951326, 0.004487276542931795, -0.04709627479314804, -0.03676297515630722, -0.009179980494081974, -0.09281044453382492, -0.020368479192256927, 0.0161233339458704, -0.0013274059165269136, -0.25255510210990906, -0.007652001455426216, -0.0292173121124506, 0.03202907368540764, -0.024103010073304176, 0.06330603361129761, 0.014885077252984047, 0.044712577015161514, -0.04583345353603363, 0.03697939217090607, 0.07993363589048386, 0.02358616702258587, -0.001246427884325385, 0.009891381487250328, -0.003110365942120552, 0.07171640545129776, 0.020883072167634964, -0.03430382162332535, 0.04669857397675514, -0.048412274569272995, 0.020955529063940048, 0.04704361781477928, 0.23212525248527527, 0.017424797639250755, 0.024851977825164795, 0.08084370195865631, 0.003765490371733904, 0.05678778886795044, 0.08571989834308624, 0.03395368531346321, 0.02361474744975567, 0.007987656630575657, 0.06001778319478035, -0.016557257622480392, 0.0571104995906353, -0.021173352375626564, -0.037968698889017105, 0.018778203055262566, 0.02984049543738365, -0.0466390959918499, -0.05735008046030998, 0.032509174197912216, -0.007769086863845587, -0.007648791652172804, 0.11052916198968887, -0.03593584522604942, -0.06140104681253433, -0.07868422567844391, 0.013105914928019047, 0.023435523733496666, -0.031525082886219025, -0.06936826556921005, -0.009739113040268421, 0.01773022674024105, 0.02971879579126835, 0.02931566722691059, -0.019762134179472923, 0.0015239955391734838, -0.027727840468287468, -0.020988989621400833, 0.06568127870559692, -0.034379784017801285, -0.006480319891124964, 0.03771016001701355, 0.011624054051935673 ]
2024-05-20T17:32:23.500Z
{ "contentType": "Code Example", "productName": null, "tags": [ "Java", "Spring" ], "version": null }
created
devcenter
Luckily, Spring provides the annotation `ExceptionHandler` to help us do that. See the code in my controller `PersonController`. Of course, you will need to adapt and enhance this in your real project, but you have the main idea here. ```java @ExceptionHandler(RuntimeException.class) public final ResponseEntity handleAllExceptions(RuntimeException e) { logger.error("Internal server error.", e); return new ResponseEntity<>(e, HttpStatus.INTERNAL_SERVER_ERROR); } ``` ## Aggregation pipeline MongoDB's aggregation pipeline is a very powerful and efficient way to run your complex queries as close as possible to your data for maximum efficiency. Using it can ease the computational load on your application. Just to give you a small example, I implemented the `/api/persons/averageAge` route to show you how I can retrieve the average age of the persons in my collection.
https://www.mongodb.com/developer/code-examples/java/rest-apis-java-spring-boot
md
REST APIs with Java, Spring Boot, and MongoDB
[ -0.06039218604564667, 0.0036323911044746637, 0.03805512934923172, -0.040028877556324005, 0.011331590823829174, -0.0352645181119442, 0.05585698410868645, 0.054624419659376144, -0.028550488874316216, -0.017760273069143295, 0.002833765931427479, -0.03987063094973564, 0.04272453114390373, 0.05995500087738037, -0.02279675006866455, 0.01856701634824276, -0.007778359577059746, 0.07441327720880508, -0.028045443817973137, 0.019840985536575317, 0.0384116992354393, 0.00822790153324604, -0.038174618035554886, -0.0628947988152504, -0.009552281349897385, 0.07595602422952652, -0.051541928201913834, -0.06573956459760666, -0.05330059304833412, -0.16776840388774872, 0.0025430158711969852, -0.08019030094146729, 0.07118329405784607, -0.037302251905202866, -0.04751364886760712, -0.008635173551738262, 0.010881342925131321, 0.056366004049777985, -0.01554121170192957, 0.05532718822360039, 0.02971566654741764, 0.03467998281121254, -0.025623256340622902, -0.06596916913986206, -0.048358600586652756, -0.05481280758976936, -0.03188395872712135, 0.017942437902092934, 0.014672276563942432, -0.02475603297352791, -0.05090097710490227, -0.01673736236989498, -0.006407235749065876, 0.03976258635520935, 0.01592468097805977, 0.04078533872961998, 0.0317712128162384, 0.013977624475955963, 0.025203101336956024, -0.003892448265105486, 0.03398715704679489, 0.006929630879312754, -0.15733474493026733, 0.04859093576669693, 0.03603983297944069, 0.03427916020154953, 0.029781291261315346, -0.02583177015185356, 0.03193047270178795, -0.007963139563798904, -0.03317887336015701, 0.004518203437328339, 0.07330251485109329, 0.0689128115773201, 0.03035861998796463, -0.028874387964606285, -0.011321724392473698, -0.03847964480519295, 0.007493229117244482, 0.029518328607082367, -0.062013763934373856, -0.038597144186496735, 0.00252908980473876, 0.00905006006360054, -0.004523185081779957, -0.015328600071370602, 0.039584919810295105, -0.0405869223177433, 0.04891118034720421, 0.04226274788379669, -0.027991900220513344, -0.002260401612147689, 0.015382157638669014, 0.028764281421899796, -0.03330830857157707, 0.025339936837553978, 0.03774479776620865, 0.016322491690516472, -0.040727488696575165, 0.23173120617866516, -0.01675889641046524, 0.025263022631406784, 0.004905999172478914, -0.014063810929656029, 0.010619601234793663, -0.029067354276776314, -0.017776362597942352, -0.04389340057969093, -0.014845904894173145, -0.000424161902628839, -0.006487630307674408, -0.01033247821033001, 0.028435299172997475, -0.058026012033224106, 0.04013132303953171, 0.025960629805922508, 0.03637610375881195, 0.05650542676448822, -0.04290613532066345, -0.012868789955973625, 0.006098443176597357, 0.001797263277694583, 0.023061148822307587, 0.009260421618819237, 0.060924042016267776, -0.08044414967298508, 0.037557415664196014, 0.0935412049293518, 0.01290665939450264, 0.029586654156446457, 0.021687299013137817, -0.030420513823628426, -0.12866301834583282, -0.028006458654999733, 0.016677241772413254, 0.00904407911002636, -0.011508308351039886, 0.025334013625979424, 0.015134270302951336, -0.0010922536021098495, -0.01834622584283352, -0.10395411401987076, -0.04815222695469856, -0.08348590135574341, -0.0670892596244812, 0.14028479158878326, -0.017331702634692192, 0.07923226058483124, -0.004032937344163656, -0.0519535094499588, -0.012684687040746212, 0.02873845025897026, -0.04156126454472542, -0.004033159464597702, 0.012151435948908329, 0.04265407472848892, 0.05206042155623436, 0.05016877129673958, -0.00043603836093097925, -0.001977162668481469, -0.0070663029327988625, -0.010719985701143742, -0.045881956815719604, 0.0895823985338211, 0.017165696248412132, -0.0985603854060173, 0.005515264812856913, 0.02918008156120777, -0.015149090439081192, -0.03419311344623566, 0.04976361617445946, 0.018153857439756393, -0.03797118365764618, 0.038716573268175125, 0.10619311779737473, 0.05521004647016525, -0.012327240779995918, -0.016480324789881706, 0.004100766032934189, 0.036855507642030716, 0.03669142723083496, -0.0033011476043611765, -0.05864807963371277, 0.012703990563750267, 0.03014567121863365, -0.08728085458278656, 0.023725925013422966, -0.002507349941879511, 0.06170595809817314, 0.027545714750885963, -0.02898886241018772, -0.02646685764193535, -0.03956088423728943, 0.005604819860309362, -0.03635802119970322, -0.054164644330739975, -0.01807667315006256, -0.043070465326309204, 0.050732120871543884, -0.05353422462940216, 0.07910997420549393, 0.016353534534573555, -0.03668065369129181, 0.049124423414468765, 0.043254315853118896, 0.05875620245933533, -0.032832469791173935, -0.02443244494497776, 0.041298966854810715, -0.03371976688504219, -0.05849411338567734, -0.032153431326150894, 0.067365363240242, -0.0005828810390084982, -0.0372733548283577, 0.037030912935733795, 0.026649413630366325, 0.05259225144982338, 0.043453216552734375, 0.011326547712087631, 0.022125955671072006, -0.0509793721139431, -0.0013469640398398042, -0.243865504860878, 0.002010353608056903, 0.039135172963142395, -0.030331645160913467, 0.028321392834186554, -0.042208362370729446, 0.0015798562671989202, -0.041653573513031006, -0.007027968764305115, 0.041455406695604324, 0.06695030629634857, -0.024785926565527916, -0.00663721514865756, -0.01085654366761446, -0.04046442732214928, 0.05406906083226204, -0.018674809485673904, 0.019340723752975464, -0.04285517707467079, -0.0018647670513018966, 0.004169418476521969, -0.021388467401266098, -0.0023279832676053047, -0.04975827410817146, 0.0411825105547905, 0.006445351056754589, 0.2393769770860672, 0.046561289578676224, -0.015749845653772354, -0.10690127313137054, 0.02935599349439144, 0.012485546991229057, -0.013944444246590137, -0.09270182251930237, 0.06958689540624619, -0.0012046186020597816, -0.03830670565366745, -0.006865398027002811, -0.0007590215536765754, -0.023340683430433273, -0.028410060331225395, 0.022621797397732735, 0.0311378575861454, -0.09751991182565689, -0.012959632091224194, -0.036305464804172516, -0.021254317834973335, -0.012377966195344925, -0.030156783759593964, 0.01708255335688591, -0.011029531247913837, -0.03655903786420822, 0.04169303551316261, 0.0011145755415782332, -0.012594882398843765, -0.050649117678403854, -0.07239530235528946, 0.05494258925318718, -0.01123568881303072, 0.03839462623000145, 0.0034404254984110594, 0.0022171204909682274, 0.04255015775561333, -0.02888793684542179, 0.014294418506324291, -0.012935424223542213, 0.018051130697131157, -0.014862949028611183, -0.0398293174803257, -0.06532171368598938, -0.020587095990777016, 0.10257835686206818, -0.04773535206913948, 0.0008438624208793044, 0.01649519056081772, 0.03822290524840355, 0.018964195623993874, -0.07836516201496124, -0.0200630035251379, -0.0027858226094394922, -0.013863809406757355, -0.03723529726266861, 0.04672763869166374, 0.03700786456465721, 0.03412076458334923, -0.003284414066001773, 0.041331592947244644, 0.015800917521119118, 0.027814239263534546, -0.013255002908408642, -0.008188384585082531, -0.01644129492342472, -0.0838344544172287, -0.01595269702374935, -0.02120571956038475, 0.00882064737379551, -0.2718275487422943, 0.029885273426771164, -0.047492481768131256, 0.00721880653873086, 0.01159710343927145, 0.018880028277635574, 0.06277836859226227, 0.03297090902924538, 0.0066973245702683926, 0.025270085781812668, 0.04006681963801384, 0.011268654838204384, 0.02386699616909027, -0.007937788963317871, 0.01337950024753809, 0.07874166965484619, -0.024479640647768974, -0.03762209042906761, 0.07805731892585754, -0.07094132900238037, 0.07232179492712021, 0.07081778347492218, 0.2333456128835678, -0.009353692643344402, 0.030545273795723915, 0.08412548899650574, -0.019877351820468903, -0.01178284827619791, 0.06788734346628189, -0.020415596663951874, -0.002158205024898052, -0.013241545297205448, 0.13603077828884125, -0.04620789736509323, 0.06852378696203232, 0.02280253916978836, -0.0006653540767729282, -0.02997737005352974, -0.003547841217368841, -0.009834791533648968, -0.05917517840862274, 0.00782082974910736, -0.032363325357437134, -0.01665775664150715, 0.12364077568054199, -0.0012561555486172438, -0.05626358091831207, -0.05222351476550102, 0.004143494181334972, 0.022336116060614586, -0.036964792758226395, -0.0790628120303154, -0.030845943838357925, 0.024029770866036415, 0.04940091818571091, 0.03163493052124977, -0.021448731422424316, -0.009141404181718826, -0.06963860988616943, -0.02460140362381935, 0.00567997433245182, -0.027620980516076088, -0.007906299084424973, 0.020357990637421608, -0.011486854404211044 ]
2024-05-20T17:32:23.500Z
{ "contentType": "Code Example", "productName": null, "tags": [ "Java", "Spring" ], "version": null }
created
devcenter
```java @Override public double getAverageAge() { List pipeline = List.of(group(new BsonNull(), avg("averageAge", "$age")), project(excludeId())); return personCollection.aggregate(pipeline, AverageAgeDTO.class).first().averageAge(); } ``` Also, you can note here that I’m using the `personCollection` which was initially instantiated like this: ```java private MongoCollection personCollection; @PostConstruct void init() { personCollection = client.getDatabase("test").getCollection("persons", PersonEntity.class); } ``` Normally, my personCollection should encode and decode `PersonEntity` object only, but you can overwrite the type of object your collection is manipulating to return something different — in my case, `AverageAgeDTO.class` as I’m not expecting a `PersonEntity` class here but a POJO that contains only the average age of my "persons". ## Swagger
https://www.mongodb.com/developer/code-examples/java/rest-apis-java-spring-boot
md
REST APIs with Java, Spring Boot, and MongoDB
[ -0.03430325910449028, 0.004300291184335947, -0.0027935784310102463, -0.038299523293972015, 0.009678411297500134, -0.027354616671800613, 0.037777598947286606, 0.026876822113990784, -0.01637119986116886, 0.011425045318901539, 0.015342768281698227, -0.0679003968834877, 0.03717166185379028, 0.05920882523059845, -0.025988196954131126, 0.009677802212536335, 0.01794459857046604, 0.0672374814748764, -0.07171178609132767, -0.0019018951570615172, 0.0843391939997673, -0.0016309202183037996, -0.04712756350636482, -0.0731048583984375, 0.06368030607700348, 0.07757391035556793, -0.048004381358623505, -0.030559372156858444, -0.03504865616559982, -0.20345106720924377, 0.0012053594691678882, -0.07958760112524033, 0.0692148506641388, -0.03318402171134949, -0.04037763178348541, -0.01109245140105486, -0.0269230417907238, 0.05044357851147652, -0.04997967928647995, 0.06825597584247589, 0.0547022819519043, 0.018989719450473785, -0.06386303901672363, -0.08737346529960632, -0.05188674107193947, -0.041677407920360565, -0.022728580981492996, -0.026584306731820107, 0.017801150679588318, -0.03223693370819092, -0.02325581945478916, -0.006397732067853212, 0.007246316876262426, 0.03634994849562645, 0.023983880877494812, 0.030794991180300713, 0.032856669276952744, 0.05372698977589607, 0.018508663401007652, -0.011354608461260796, 0.0031274326611310244, 0.010715954937040806, -0.15421836078166962, 0.05789586901664734, 0.02015218697488308, 0.04134391248226166, 0.009705628268420696, -0.020289644598960876, 0.03820865973830223, 0.008223777636885643, 0.009677058085799217, 0.016597481444478035, 0.05455171689391136, 0.061458609998226166, 0.037618350237607956, -0.031103717163205147, -0.00838239211589098, -0.04063545912504196, 0.027367079630494118, 0.04094172269105911, -0.07666251808404922, -0.04669817537069321, 0.006827650126069784, 0.022602582350373268, -0.03650771453976631, -0.04102164879441261, 0.06331752240657806, -0.06857752054929733, 0.05634815990924835, 0.04634295031428337, -0.021294377744197845, 0.0045775738544762135, 0.01883876509964466, 0.02328861504793167, -0.07556400448083878, 0.0006922945030964911, 0.042860470712184906, 0.0373343750834465, -0.006575046107172966, 0.22246363759040833, -0.021249521523714066, 0.007229394745081663, 0.02998606115579605, -0.02670859359204769, 0.03870495781302452, -0.04590312018990517, -0.016541119664907455, -0.05036062374711037, 0.030504221096634865, 0.0015712704043835402, -0.03396320715546608, -0.02607579529285431, 0.015117863193154335, -0.053111959248781204, 0.009988960810005665, 0.004258234519511461, 0.02105054259300232, 0.06610755622386932, -0.04769141972064972, 0.010201416909694672, 0.01999465376138687, 0.004218949005007744, 0.020450875163078308, -0.002019621431827545, 0.014382909052073956, -0.06358444690704346, 0.03750016540288925, 0.11048205941915512, 0.02001490257680416, 0.041183046996593475, 0.04349031671881676, -0.04321726784110069, -0.11007504165172577, -0.06030527874827385, -0.001957464497536421, 0.028771277517080307, 0.005998844746500254, 0.031707603484392166, 0.024473557248711586, 0.009247520938515663, -0.011214266531169415, -0.06631223112344742, -0.05180496722459793, -0.07847382128238678, -0.06189677491784096, 0.1244751438498497, -0.021613791584968567, 0.08270825445652008, -0.02136908657848835, -0.031987566500902176, -0.03204461932182312, 0.02591816894710064, -0.027118759229779243, -0.01868312433362007, -0.01124499086290598, 0.02931426838040352, 0.044516514986753464, 0.05085211619734764, -0.038443759083747864, -0.028466003015637398, -0.004680165089666843, -0.017940469086170197, -0.06918658316135406, 0.07687785476446152, 0.04041586443781853, -0.04071713984012604, 0.0015590802067890763, 0.014930568635463715, -0.01691521145403385, -0.04873990640044212, 0.013310245238244534, 0.026579895988106728, -0.05300067365169525, 0.02952047623693943, 0.11131186783313751, 0.022300217300653458, -0.011855779215693474, -0.00420213071629405, -0.030276048928499222, 0.006978149991482496, -0.016852224245667458, -0.025204867124557495, -0.08114128559827805, 0.003294257214292884, 0.055015306919813156, -0.07477967441082001, -0.015538159757852554, -0.02034764736890793, 0.020789751783013344, 0.056165553629398346, -0.021937424317002296, 0.02764849178493023, -0.03953762724995613, -0.000940999889280647, -0.02222883701324463, -0.03093605488538742, 0.012104494497179985, -0.028055431321263313, 0.025376271456480026, -0.01578206568956375, 0.06377270072698593, 0.0678497850894928, -0.024557363241910934, 0.059795036911964417, 0.004271580837666988, 0.04829917475581169, -0.005988177843391895, -0.041271038353443146, 0.043453559279441833, -0.01090028416365385, -0.06733851134777069, -0.05045541375875473, 0.02557300217449665, 0.051429275423288345, -0.03194582089781761, 0.047221649438142776, 0.030537543818354607, 0.026428883895277977, 0.06587038189172745, 0.016914065927267075, -0.02690764330327511, -0.05935833230614662, -0.013953086920082569, -0.2503095269203186, 0.04862085357308388, 0.02353534661233425, -0.03925962746143341, 0.009310313500463963, -0.03186645358800888, 0.02319483272731304, -0.03378906846046448, 0.0001994186022784561, 0.06468327343463898, 0.05178896710276604, -0.014796395786106586, -0.018073849380016327, 0.03898565471172333, -0.04108376055955887, 0.08006184548139572, 0.003871307475492358, -0.008155706338584423, -0.023388158529996872, 0.02627967856824398, 0.02278188243508339, 0.006179786752909422, -0.007742430083453655, -0.06624632328748703, 0.06047172099351883, 0.01045687310397625, 0.231388121843338, 0.03840260952711105, 0.023857805877923965, -0.07478980720043182, 0.0466904453933239, 0.024120161309838295, -0.013927415013313293, -0.07475903630256653, 0.056994713842868805, -0.010435166768729687, -0.025841951370239258, -0.02395073138177395, -0.003981007728725672, 0.0028132980223745108, -0.0403425358235836, 0.0029577906243503094, 0.014216474257409573, -0.10031172633171082, 0.005901651922613382, -0.0811859592795372, -0.04688134416937828, 0.008389631286263466, -0.04352135211229324, 0.02354602888226509, -0.004186788573861122, -0.057678963989019394, 0.06878839433193207, 0.02708357572555542, -0.012710506096482277, -0.005064746830612421, -0.061794742941856384, 0.04450444132089615, -0.008353091776371002, 0.04641244560480118, 0.006879068911075592, 0.0065888031385838985, 0.017449816688895226, -0.03372572362422943, 0.028794877231121063, -0.03315563127398491, -0.04633057489991188, -0.029208587482571602, -0.012698741629719734, -0.06935375928878784, 0.0015315880300477147, 0.06580150872468948, -0.01714950241148472, -0.028024224564433098, 0.026649776846170425, 0.05222523584961891, -0.005609909072518349, -0.03972026705741882, -0.005951719358563423, -0.02477593533694744, 0.029973207041621208, -0.02872275933623314, 0.043840061873197556, 0.03572038188576698, 0.027360349893569946, 0.010498922318220139, 0.03442718833684921, -0.016212286427617073, 0.014909408055245876, -0.020053789019584656, -0.033999502658843994, -0.03434108570218086, -0.03472413867712021, -0.02205110713839531, -0.006640988402068615, -0.025386305525898933, -0.2853829562664032, 0.030241772532463074, -0.010168327949941158, -0.0009539203601889312, -0.009523514658212662, 0.01577727496623993, 0.05629508197307587, -0.004455856047570705, -0.01829613745212555, 0.01379480678588152, 0.0434955433011055, 0.03174217417836189, 0.03201926499605179, 0.0008373394375666976, 0.04144854471087456, 0.0758688673377037, -0.0031459303572773933, -0.04282601177692413, 0.07802349328994751, -0.044251713901758194, 0.036245353519916534, 0.01581335999071598, 0.22172421216964722, 0.0119929239153862, 0.052337467670440674, 0.03550839424133301, -0.01814301498234272, 0.019881200045347214, 0.0604843907058239, -0.011164222843945026, 0.009375873021781445, -0.015907475724816322, 0.16602565348148346, -0.038844216614961624, 0.03081423230469227, 0.007596236653625965, -0.006250027101486921, 0.017814869061112404, -0.0015491289086639881, -0.011566836386919022, -0.039885517209768295, -0.009957510977983475, -0.04960252344608307, -0.03692856431007385, 0.1597391813993454, -0.0048873694613575935, -0.03222681209445, -0.04357585683465004, 0.0029490410815924406, 0.011796196922659874, -0.04800301417708397, -0.04066595062613487, -0.020943667739629745, -0.019886314868927002, 0.05500731244683266, 0.02637498825788498, -0.026080213487148285, -0.0023786972742527723, -0.05624784529209137, 0.007823966443538666, 0.00020911518367938697, -0.022337323054671288, -0.030897215008735657, 0.05023577809333801, -0.018302002921700478 ]
2024-05-20T17:32:23.500Z
{ "contentType": "Code Example", "productName": null, "tags": [ "Java", "Spring" ], "version": null }
created
devcenter
## Swagger Swagger is the tool you need to document your REST APIs. You have nothing to do — the configuration is completely automated. Just run the server and navigate to http://localhost:8080/swagger-ui.html. the interface will be waiting for you. for more information. ## Nyan Cat Yes, there is a Nyan Cat section in this post. Nyan Cat is love, and you need some Nyan Cat in your projects. :-) Did you know that you can replace the Spring Boot logo in the logs with pretty much anything you want? and the "Epic" font for each project name. It's easier to identify which log file I am currently reading. ## Conclusion I hope you like my template, and I hope I will help you be more productive with MongoDB and the Java stack.
https://www.mongodb.com/developer/code-examples/java/rest-apis-java-spring-boot
md
REST APIs with Java, Spring Boot, and MongoDB
[ -0.051025472581386566, 0.0020606087055057287, 0.008362272754311562, -0.01653616689145565, 0.04463132098317146, 0.00867606233805418, -0.00596108753234148, 0.03738109767436981, -0.02173328772187233, -0.016612080857157707, -0.005427626892924309, -0.05795499309897423, 0.04639716446399689, 0.05937735363841057, 0.03109944984316826, -0.026716219261288643, 0.010451672598719597, 0.027732087299227715, -0.03541772812604904, -0.010855968110263348, 0.07931631803512573, 0.02627728320658207, -0.023676540702581406, -0.055550716817379, 0.03715623915195465, 0.10343778878450394, -0.01773970015347004, -0.005102881696075201, -0.054339323192834854, -0.1885569989681244, 0.016340257599949837, -0.04412178322672844, 0.03607269003987312, -0.028451956808567047, -0.003937968518584967, 0.007380349095910788, -0.009125219658017159, 0.04017305746674538, -0.025560971349477768, 0.05417166277766228, 0.07455122470855713, 0.005718807224184275, -0.002380700781941414, -0.05185384303331375, -0.0336436927318573, -0.07486215978860855, -0.028154628351330757, -0.005685500800609589, 0.00519055500626564, -0.03922737017273903, -0.017841236665844917, -0.04051164537668228, -0.016021745279431343, 0.007279681041836739, 0.04078063741326332, 0.06858513504266739, 0.09819695353507996, 0.055832259356975555, 0.01696363277733326, -0.002943522995337844, 0.036494046449661255, 0.03630447015166283, -0.192888081073761, 0.07568884640932083, 0.05371040478348732, 0.035825464874506, -0.04861995205283165, 0.006506336387246847, 0.053799062967300415, 0.02998107671737671, -0.05028442293405533, 0.0015169888501986861, 0.039573755115270615, 0.07131296396255493, 0.0352245457470417, -0.05613195523619652, 0.02314508706331253, -0.016759352758526802, 0.05446940287947655, 0.015707066282629967, -0.091022789478302, -0.022027628496289253, -0.02141772024333477, 0.01889035664498806, -0.02339407615363598, -0.005232018418610096, -0.01692742295563221, -0.03743649646639824, 0.06253854185342789, 0.01193042378872633, -0.012476110830903053, -0.014769460074603558, 0.03680957481265068, -0.015079623088240623, -0.08032513409852982, -0.016271499916911125, 0.01934994012117386, 0.03545207530260086, -0.02839881367981434, 0.23463772237300873, -0.000036804474802920595, -0.01837473176419735, 0.03470929339528084, -0.03915224224328995, 0.006985702086240053, -0.04801638796925545, -0.03010844998061657, -0.0264041218906641, 0.024339964613318443, 0.03819222003221512, 0.0037645199336111546, -0.024213731288909912, -0.019067130982875824, -0.04372022673487663, 0.04077612981200218, -0.03582911938428879, 0.03304985538125038, 0.05247148871421814, -0.030635366216301918, -0.003925557713955641, -0.027415163815021515, -0.009719816036522388, 0.034090541303157806, -0.002004872774705291, -0.005896989721804857, -0.09031558036804199, 0.05929742380976677, 0.06336094439029694, 0.02934129908680916, 0.07860878109931946, 0.030521955341100693, 0.01091775856912136, -0.09468188881874084, -0.02536585181951523, 0.00016833949484862387, 0.012285967357456684, 0.03030542843043804, -0.02523902989923954, -0.011315415613353252, 0.053036537021398544, -0.0358169823884964, -0.06843820214271545, -0.04391247779130936, -0.12525177001953125, -0.03696802631020546, 0.09384119510650635, 0.006778177805244923, 0.08507886528968811, -0.029700715094804764, -0.04907270893454552, -0.01871473155915737, 0.06247681751847267, -0.0285833440721035, -0.00948029849678278, -0.006865926086902618, 0.033506184816360474, 0.03072509355843067, 0.06404311209917068, -0.01442025788128376, 0.017858142033219337, -0.004136525560170412, -0.0638963058590889, -0.04194314405322075, 0.0535045750439167, 0.043788257986307144, -0.136546790599823, -0.00034580728970468044, 0.02551613375544548, -0.02590121328830719, -0.021269217133522034, 0.02000521682202816, 0.05571207404136658, -0.027496343478560448, -0.00020138485706411302, 0.08088889718055725, 0.04494984820485115, -0.00921319704502821, 0.01857111044228077, -0.018275544047355652, -0.0021028872579336166, 0.027182482182979584, -0.036874525249004364, -0.06392129510641098, 0.0658528134226799, 0.02482789009809494, -0.05149570852518082, 0.007112224120646715, -0.023570522665977478, 0.00859827734529972, 0.04217638820409775, -0.021636784076690674, -0.0343010239303112, -0.010423282161355019, -0.04238470271229744, -0.0059621925465762615, -0.06487903743982315, -0.012223269790410995, -0.016657814383506775, 0.05543367192149162, -0.0373733714222908, 0.06141141057014465, 0.05289069563150406, -0.008242732845246792, 0.05782410502433777, 0.027146246284246445, 0.037662699818611145, -0.023748347535729408, -0.01824326626956463, 0.04652509093284607, -0.008280336856842041, -0.06676190346479416, 0.020702926442027092, 0.047746747732162476, 0.01835743710398674, -0.05110368877649307, -0.007117587141692638, 0.031295809894800186, 0.021210938692092896, 0.035226982086896896, 0.05095050111413002, 0.008827787823975086, -0.053324874490499496, -0.025588039308786392, -0.23044437170028687, 0.010400568135082722, 0.0025379927828907967, -0.06832026690244675, 0.002754820743575692, -0.09814272820949554, 0.014761517755687237, -0.02874225564301014, 0.01866353116929531, 0.034080035984516144, 0.10080129653215408, -0.04615017771720886, -0.029253873974084854, 0.007972010411322117, -0.04278195649385452, 0.06245679035782814, 0.021820610389113426, -0.016970979049801826, -0.035293374210596085, 0.00030006596352905035, 0.005426459945738316, -0.014162671752274036, -0.015971949324011803, -0.06651727855205536, 0.017789430916309357, 0.014483898878097534, 0.21039097011089325, 0.07790821045637131, 0.022089065983891487, -0.07391253113746643, 0.0502905510365963, 0.010100971907377243, -0.02424478903412819, -0.1314859390258789, 0.03954223915934563, 0.05923400819301605, 0.02832150086760521, -0.015790678560733795, 0.0067397127859294415, -0.04621178284287453, -0.06828518211841583, 0.06685388088226318, -0.004109166096895933, -0.10304819047451019, 0.01046245638281107, -0.05829893425107002, -0.051325127482414246, -0.033336371183395386, -0.06503944844007492, 0.0012416912941262126, 0.016793709248304367, -0.00649967510253191, 0.03128470480442047, 0.03365001454949379, -0.02089373767375946, -0.04286770522594452, -0.05806334316730499, 0.012177722528576851, 0.004512918181717396, 0.02964962087571621, -0.022048277780413628, -0.030569495633244514, 0.038854002952575684, -0.03463001921772957, 0.059969462454319, -0.017944499850273132, -0.028842810541391373, -0.030966319143772125, 0.014517873525619507, -0.0634060651063919, -0.03463015705347061, 0.049818459898233414, -0.012044733390212059, -0.02695615030825138, 0.04486316815018654, 0.021944895386695862, -0.0025459991302341223, -0.04548401013016701, -0.04680262506008148, -0.05189114436507225, 0.03708833083510399, -0.005659467540681362, 0.047577861696481705, 0.010259433649480343, 0.008663587272167206, 0.06239420548081398, 0.02457352541387081, -0.008442235179245472, 0.0344528928399086, -0.020690659061074257, -0.013873633928596973, -0.0095931151881814, -0.02572817914187908, -0.05043598636984825, 0.010256295092403889, 0.00392927834764123, -0.25540032982826233, 0.04025758057832718, 0.01216859184205532, 0.03717627748847008, -0.01028773095458746, 0.02999628521502018, 0.04502435401082039, -0.003601766424253583, -0.04699390009045601, -0.0026464115362614393, 0.05725076049566269, 0.064114049077034, 0.025758882984519005, -0.025093896314501762, 0.019418178126215935, 0.08801102638244629, 0.06256549805402756, -0.06130978837609291, 0.058860208839178085, -0.05015234276652336, -0.040639203041791916, -0.0036617040168493986, 0.2156745046377182, -0.0007880552439019084, 0.0465463325381279, 0.051546912640333176, -0.009197215549647808, 0.05629819259047508, 0.054972726851701736, 0.005215373821556568, 0.03384258970618248, -0.01123103965073824, 0.09030485153198242, 0.02581874467432499, 0.026632457971572876, 0.0300514604896307, -0.005050093401223421, 0.01483500562608242, 0.0014222771860659122, -0.008999972604215145, -0.04609792307019234, 0.009371747262775898, -0.016838515177369118, 0.00016937917098402977, 0.11040828377008438, -0.06122875213623047, -0.06746839731931686, -0.04957061633467674, 0.01860908605158329, -0.002304650843143463, -0.06937038898468018, -0.06805223226547241, -0.05633736401796341, 0.03585510700941086, 0.01486998051404953, 0.05038358271121979, 0.017371680587530136, 0.007280780468136072, -0.07644877582788467, -0.033394183963537216, 0.001538911834359169, -0.013770426623523235, 0.010051536373794079, 0.023814532905817032, 0.014632935635745525 ]
2024-05-20T17:32:23.500Z
{ "contentType": "Code Example", "productName": null, "tags": [ "Java", "Spring" ], "version": null }
created
devcenter
## Conclusion I hope you like my template, and I hope I will help you be more productive with MongoDB and the Java stack. If you see something which can be improved, please feel free to open a GitHub issue or directly submit a pull request. They are very welcome. :-) If you are new to MongoDB Atlas, give our Quick Start post a try to get up to speed with MongoDB Atlas in no time. [1]: https://images.contentstack.io/v3/assets/blt39790b633ee0d5a7/blt876f3404c57aa244/65388189377588ba166497b0/swaggerui.png [2]: https://images.contentstack.io/v3/assets/blt39790b633ee0d5a7/bltf2f06ba5af19464d/65388188d31953242b0dbc6f/nyancat.png
https://www.mongodb.com/developer/code-examples/java/rest-apis-java-spring-boot
md
REST APIs with Java, Spring Boot, and MongoDB
[ -0.0710957869887352, 0.011432668194174767, -0.004561296198517084, -0.005724127404391766, 0.02573459781706333, -0.0029782771598547697, 0.010772356763482094, 0.0374654084444046, -0.01542743295431137, -0.02575158327817917, -0.0037470050156116486, -0.08644571900367737, 0.06435542553663254, 0.062283411622047424, -0.0015874247765168548, 0.006849624682217836, -0.016783300787210464, 0.015218176878988743, -0.04414988309144974, -0.007700302638113499, 0.055870018899440765, 0.005593983456492424, -0.04831068590283394, -0.0633697658777237, 0.03243860602378845, 0.09579171240329742, -0.029663201421499252, -0.04220135509967804, -0.03693074360489845, -0.2443440854549408, 0.03337252885103226, -0.031143972650170326, 0.0947619378566742, -0.03943756967782974, -0.03584926947951317, -0.0011399158975109458, -0.022890742868185043, 0.07328487932682037, -0.03749850019812584, 0.024815373122692108, 0.08307347446680069, 0.03286408632993698, -0.014932198449969292, -0.07659471035003662, -0.04815814271569252, -0.06533423811197281, -0.014072042889893055, -0.012913085520267487, 0.00793838407844305, -0.049866367131471634, -0.04944289103150368, -0.04085901752114296, -0.022606564685702324, 0.007975293323397636, 0.03328847512602806, 0.04054427519440651, 0.069783054292202, 0.06350143253803253, -0.01986875757575035, -0.005531645379960537, 0.05314391478896141, 0.037879087030887604, -0.16593371331691742, 0.050425074994564056, 0.03870265185832977, 0.05647921562194824, -0.03835345059633255, -0.0014353628503158689, 0.015384562313556671, 0.02149503119289875, -0.019608570262789726, -0.0031078385654836893, 0.005408104509115219, 0.059684280306100845, 0.0453917570412159, -0.0223738681524992, -0.0021783371921628714, -0.03364642336964607, 0.0168492142111063, 0.0194551944732666, -0.0890439972281456, -0.025258846580982208, -0.005517304874956608, 0.0071121263317763805, -0.021887850016355515, -0.004645060747861862, 0.01649346761405468, -0.08035720139741898, 0.02068992704153061, 0.0072183203883469105, 0.03550638258457184, 0.021560868248343468, 0.039715856313705444, 0.024186601862311363, -0.08235892653465271, -0.011327793821692467, 0.024732254445552826, 0.03655292093753815, 0.01549615990370512, 0.1827143430709839, -0.03064078837633133, 0.02731306478381157, 0.04949936643242836, -0.01824641227722168, 0.037008292973041534, -0.01679745316505432, 0.0037142704240977764, -0.05804841220378876, -0.011230752803385258, 0.027280297130346298, -0.004831931088119745, -0.037972137331962585, 0.01698654517531395, -0.05546244606375694, 0.01899832673370838, -0.018889542669057846, 0.04712972044944763, 0.03770974650979042, -0.05187466740608215, -0.00952697079628706, 0.00018859819101635367, 0.029183557257056236, 0.06894379109144211, 0.01299492921680212, 0.002930430229753256, -0.04890163615345955, 0.006540386006236076, 0.069710873067379, 0.021094659343361855, 0.049758683890104294, 0.033092040568590164, 0.015114933252334595, -0.06641547381877899, -0.03107835352420807, 0.012194938026368618, 0.015456417575478554, -0.014681083150207996, -0.031215772032737732, -0.014824960380792618, 0.057776328176259995, -0.029924629256129265, -0.08994957059621811, -0.05338835343718529, -0.10961535573005676, -0.02644210495054722, 0.11571338772773743, -0.03192927688360214, 0.060842033475637436, -0.057520102709531784, -0.027584142982959747, -0.0226459763944149, 0.04652399569749832, -0.050448764115571976, -0.0049930764362216, -0.03840365260839462, 0.021082499995827675, 0.05005995184183121, 0.08987542986869812, -0.06256172060966492, -0.025655940175056458, -0.028677577152848244, -0.014071814715862274, -0.054632291197776794, 0.09749510139226913, 0.02232547104358673, -0.1253591626882553, 0.0072601353749632835, 0.019846981391310692, -0.002391277812421322, -0.018467068672180176, -0.0047390959225595, 0.04639846459031105, -0.011925642378628254, 0.021967552602291107, 0.11722724139690399, 0.04869462549686432, -0.0303104966878891, 0.007070047780871391, -0.0015147078083828092, -0.004439064301550388, 0.017583763226866722, -0.04087356477975845, -0.06484858691692352, 0.05677499622106552, -0.00998555775731802, -0.03141690045595169, -0.014786812476813793, -0.01790618523955345, 0.03908691182732582, 0.056757695972919464, -0.009954924695193768, -0.007797755766659975, 0.02395031787455082, -0.003794399555772543, -0.025632664561271667, -0.08919026702642441, -0.006427171174436808, -0.017643757164478302, 0.049335721880197525, -0.07647577673196793, 0.08324497938156128, 0.05302765592932701, -0.0000397916192014236, 0.06069870665669441, 0.02010219357907772, 0.014622249640524387, -0.031015217304229736, -0.023312799632549286, 0.004161733202636242, 0.00683141965419054, -0.040480151772499084, -0.004270613193511963, -0.005741018336266279, 0.012443147599697113, -0.013345880433917046, -0.007423234172165394, 0.028534987941384315, 0.06026408076286316, 0.020163951441645622, 0.0397784523665905, -0.0025385709013789892, -0.11398814618587494, -0.047987185418605804, -0.21776334941387177, 0.03868705406785011, -0.0026605597231537104, -0.0015623768558725715, -0.036850329488515854, -0.05347388610243797, 0.01814870722591877, -0.02345331385731697, -0.023592200130224228, 0.04539775103330612, 0.06445863842964172, -0.02767552249133587, -0.008647135458886623, 0.024048518389463425, -0.046793535351753235, 0.08645329624414444, 0.012954982928931713, -0.019482899457216263, -0.03339480981230736, -0.007167223375290632, 0.017367515712976456, 0.02618071250617504, -0.030608491972088814, -0.09694962203502655, 0.012907285243272781, 0.0072149052284657955, 0.23441553115844727, 0.025302546098828316, -0.004311659839004278, -0.05326364189386368, 0.07675928622484207, -0.01358374860137701, -0.027014244347810745, -0.07291720807552338, 0.053767602890729904, 0.04152931272983551, 0.0012347419979050756, -0.014084722846746445, -0.0037230215966701508, -0.05564001575112343, -0.05569896101951599, 0.04504154622554779, 0.015987519174814224, -0.08045017719268799, -0.013065670616924763, -0.04406142607331276, -0.020352449268102646, -0.016830584034323692, -0.03845084086060524, 0.04946758225560188, -0.043189916759729385, 0.011928333900868893, 0.060895342379808426, 0.024237697944045067, -0.0201996061950922, -0.03233293816447258, -0.0680074468255043, 0.020910372957587242, -0.0366162434220314, 0.07349991053342819, -0.017961783334612846, 0.001734623103402555, 0.03565383702516556, -0.019966110587120056, 0.02487221732735634, -0.02870159037411213, -0.03444203361868858, -0.013643154874444008, 0.012521387077867985, -0.07682971656322479, -0.02420632541179657, 0.019209830090403557, -0.017244748771190643, -0.01933603547513485, 0.033170461654663086, 0.02793070860207081, 0.006897889543324709, -0.008545985445380211, -0.02837880328297615, -0.040791306644678116, 0.0205300971865654, -0.026653310284018517, 0.07181345671415329, 0.02493348717689514, 0.03094199299812317, 0.07088308781385422, 0.05199014022946358, -0.019941046833992004, 0.004440330434590578, -0.035002823919057846, -0.0020539616234600544, -0.004795784130692482, -0.032567065209150314, -0.04284363240003586, 0.004545989446341991, 0.00819526705890894, -0.26191356778144836, 0.054125357419252396, -0.01584964245557785, 0.01756064034998417, 0.009593524038791656, 0.04146764427423477, 0.04961487650871277, 0.022757012397050858, -0.01830979250371456, 0.018585657700896263, 0.06226016953587532, 0.05684339255094528, 0.03047356940805912, -0.013070391491055489, 0.01315300352871418, 0.07468098402023315, 0.031498827040195465, -0.06431221216917038, 0.07059077173471451, -0.04150701314210892, 0.012826765887439251, 0.05396683141589165, 0.21962261199951172, 0.030082521960139275, 0.03285035490989685, 0.054461583495140076, 0.03933519497513771, 0.022441746667027473, 0.06828285753726959, 0.013867960311472416, -0.020215261727571487, -0.010782869532704353, 0.09745073318481445, 0.007116359192878008, 0.00503266928717494, 0.0674339011311531, -0.02455693483352661, 0.044727008789777756, -0.00564171327278018, -0.048503268510103226, -0.04193360358476639, 0.03518795594573021, -0.018614565953612328, 0.02695290371775627, 0.11827228963375092, -0.048124417662620544, -0.06273313611745834, -0.05488118156790733, 0.01369123999029398, 0.02009551413357258, -0.06619683653116226, -0.07275348156690598, -0.04399304464459419, 0.012448634020984173, -0.003924234304577112, 0.030551409348845482, 0.011641936376690865, 0.0023295029532164335, -0.043188657611608505, -0.023569270968437195, 0.009220081381499767, -0.05655272677540779, 0.006422122474759817, 0.03275797516107559, -0.009800526313483715 ]
2024-05-20T17:32:23.500Z
{ "contentType": "News & Announcements", "productName": null, "tags": [ "Swift", "MongoDB" ], "version": null }
created
devcenter
# Halting Development on MongoDB Swift Driver MongoDB is halting development on our server-side Swift driver. We remain excited about Swift and will continue our development of our mobile Swift SDK. We released our server-side Swift driver in 2020 as an open source project and are incredibly proud of the work that our engineering team has contributed to the Swift community over the last four years. Unfortunately, today we are announcing our decision to stop development of the MongoDB server-side Swift driver. We understand that this news may come as a disappointment to the community of current users. There are still ways to use MongoDB with Swift: - Use the MongoDB driver with server-side Swift applications as is - Use the MongoDB C Driver directly in your server-side Swift projects - Usage of another community Swift driver, mongokitten
https://www.mongodb.com/developer/languages/swift/halting-development-on-swift-driver
md
Halting Development on MongoDB Swift Driver
[ -0.02048601023852825, -0.010558489710092545, 0.035269901156425476, -0.029257163405418396, 0.0026281876489520073, -0.0030582291074097157, -0.007431581616401672, 0.01594264805316925, -0.02352409064769745, -0.014450808987021446, 0.010975237935781479, -0.026762347668409348, 0.023372916504740715, 0.017757641151547432, -0.0018557376461103559, 0.03157683089375496, -0.0012922220630571246, -0.034469638019800186, -0.01713550090789795, 0.02639652229845524, 0.02069052867591381, -0.01550234667956829, -0.04351317137479782, -0.05939182639122009, 0.02372566983103752, 0.09164886921644211, -0.029360331594944, -0.03867083787918091, -0.027647994458675385, -0.1910354644060135, -0.021367967128753662, -0.07522981613874435, 0.036462679505348206, -0.038482096046209335, -0.01899334415793419, -0.044649120420217514, -0.006543514784425497, 0.061896756291389465, -0.018272973597049713, 0.04881741479039192, 0.02278759889304638, 0.014554756693542004, -0.05254749208688736, -0.04937439411878586, -0.027392826974391937, -0.0422135666012764, -0.0278488639742136, -0.02933172695338726, 0.0050028287805616856, -0.04971746355295181, -0.05394688621163368, -0.05646440386772156, -0.037708062678575516, 0.021327579393982887, 0.03585438057780266, 0.06468251347541809, 0.016585905104875565, 0.018897563219070435, 0.05480638146400452, 0.04882785677909851, 0.0802316963672638, 0.01846955344080925, -0.1985851377248764, 0.06092743203043938, 0.02684246003627777, 0.05004188045859337, -0.010592637583613396, -0.046268247067928314, 0.04160693660378456, 0.02170551009476185, 0.0011130187194794416, 0.023935817182064056, 0.013537688180804253, 0.03167358785867691, 0.019517479464411736, -0.02440553717315197, -0.007848146371543407, -0.0340481735765934, 0.019114641472697258, 0.010195236653089523, -0.029855409637093544, -0.027423178777098656, -0.02697516791522503, 0.008560074493288994, -0.029834924265742302, -0.0348690040409565, 0.008936329744756222, -0.04941745474934578, 0.01857137307524681, -0.02232160046696663, -0.020418161526322365, -0.05380740389227867, 0.09927476197481155, 0.014523370191454887, -0.11042986065149307, 0.0077461907640099525, 0.03297363221645355, 0.01358887366950512, -0.04033947363495827, 0.24257071316242218, -0.05084877461194992, 0.06087072938680649, -0.006185871548950672, -0.03817126899957657, -0.05112450197339058, -0.010141986422240734, -0.014347548596560955, -0.027242351323366165, -0.007272066082805395, 0.016961313784122467, 0.016476068645715714, -0.034774698317050934, 0.0058367555029690266, -0.026035359129309654, 0.018889976665377617, 0.016721846535801888, 0.020839493721723557, 0.056336916983127594, -0.035102929919958115, 0.062143195420503616, -0.02228565514087677, 0.06063906475901604, 0.05862220749258995, -0.006383392494171858, 0.04026804864406586, -0.02596694976091385, 0.08031174540519714, 0.0888252928853035, 0.010719561018049717, 0.008323831483721733, 0.03919469937682152, -0.03157489001750946, -0.10954313725233078, -0.008154566399753094, 0.029881242662668228, -0.0026312205009162426, -0.005292953923344612, -0.0038986799772828817, 0.021883787587285042, -0.03322962298989296, -0.015353221446275711, -0.10804140567779541, -0.01122510526329279, -0.07526969164609909, -0.0022669006139039993, 0.045189857482910156, -0.014097586274147034, 0.0690845400094986, -0.03491701930761337, -0.03916693106293678, 0.007595124654471874, 0.04168657585978508, -0.05663930997252464, -0.004416401498019695, 0.004052917938679457, 0.025751877576112747, 0.06366114318370819, 0.06041795387864113, -0.05914697423577309, 0.01854086108505726, -0.014881893061101437, -0.019111042842268944, -0.034033339470624924, 0.04088578373193741, 0.012494969181716442, -0.1103392168879509, 0.008626190945506096, 0.05738062411546707, -0.022094011306762695, -0.008780761621892452, -0.0431157648563385, 0.0012058439897373319, -0.03171281889081001, -0.0008084425935521722, 0.10343419015407562, 0.021594561636447906, -0.0772218182682991, -0.0021572040859609842, -0.020591948181390762, -0.02167213149368763, 0.004137377720326185, -0.046334538608789444, -0.0488862507045269, 0.008959297090768814, 0.012205103412270546, -0.04225322976708412, 0.011202026158571243, -0.06429042667150497, 0.048188596963882446, 0.029542870819568634, -0.005677421577274799, -0.010700071230530739, -0.021853791549801826, 0.006848587188869715, -0.025195641443133354, -0.08175087720155716, -0.005950713995844126, -0.01121743954718113, 0.0548517070710659, -0.025163911283016205, 0.08010447025299072, 0.06239837780594826, -0.0011692676926031709, 0.04329463839530945, -0.008576950989663601, 0.024879401549696922, -0.04483914375305176, -0.01388945896178484, -0.01173296570777893, -0.005116472020745277, -0.031657326966524124, -0.014105585403740406, 0.03462885320186615, -0.0027669069822877645, -0.015200372785329819, -0.002674924908205867, 0.000566519855055958, 0.033359892666339874, 0.022535577416419983, 0.03308161720633507, -0.0021526410710066557, -0.008309874683618546, -0.022121505811810493, -0.26227834820747375, 0.035885218530893326, -0.00902168545871973, -0.054169707000255585, 0.01830938085913658, -0.0752188041806221, 0.0348038412630558, -0.030799994245171547, -0.025372885167598724, 0.08760179579257965, 0.061015784740448, 0.01052127219736576, -0.00244030449539423, 0.009064954705536366, -0.015806255862116814, 0.05507875978946686, 0.024700604379177094, -0.015043229795992374, -0.026668347418308258, 0.002088981680572033, 0.037326786667108536, -0.006267037242650986, -0.05484374612569809, -0.07743214815855026, 0.039270319044589996, 0.01908199116587639, 0.21206916868686676, 0.016709964722394943, 0.018840180709958076, -0.0648011863231659, 0.02767196297645569, 0.043803706765174866, -0.03662589192390442, -0.12902814149856567, 0.010452157817780972, 0.03267859295010567, 0.011567446403205395, -0.02659744955599308, -0.019464895129203796, -0.017247138544917107, -0.028035106137394905, 0.08370702713727951, 0.035161469131708145, -0.1196959912776947, 0.013285018503665924, -0.036391135305166245, -0.05575258284807205, -0.00006399768608389422, -0.01692906767129898, 0.04022939130663872, 0.03468034788966179, 0.02916603349149227, 0.05505508556962013, 0.07173258811235428, -0.0062116822227835655, -0.02412491664290428, -0.09912315756082535, 0.04186800867319107, -0.013394223526120186, 0.03747864440083504, -0.010770863853394985, -0.03473697975277901, 0.015644526109099388, -0.016827601939439774, 0.03357735276222229, 0.007091949228197336, -0.022754579782485962, -0.03439226374030113, 0.05968427658081055, -0.02819410152733326, -0.02245444618165493, 0.08272819966077805, -0.028347402811050415, 0.022436412051320076, 0.03047875128686428, 0.033631376922130585, 0.03404008224606514, -0.03534465283155441, -0.06767641007900238, -0.029708949849009514, 0.0502019003033638, -0.008759518153965473, 0.0744677409529686, 0.05787384882569313, 0.022251708433032036, 0.0376577191054821, 0.07119013369083405, 0.018521741032600403, -0.0001993134501390159, -0.0462341234087944, -0.0034393391106277704, 0.00041627223254181445, -0.044426292181015015, -0.08253864198923111, 0.06631004810333252, 0.03471176326274872, -0.23976442217826843, 0.04814466834068298, -0.015772182494401932, 0.04479863867163658, 0.016987549141049385, 0.08348839730024338, 0.04015558212995529, 0.01943105086684227, -0.05547589808702469, 0.028035487979650497, -0.0038012785371392965, 0.020276276394724846, 0.03253046050667763, 0.006551612168550491, 0.05726628750562668, 0.0369587317109108, 0.06547516584396362, -0.032656360417604446, 0.02656901814043522, -0.03670196980237961, 0.01099027507007122, 0.05642389878630638, 0.2270445078611374, -0.026688802987337112, 0.03691164404153824, 0.049888551235198975, 0.0016781019512563944, 0.03815499320626259, 0.08386728912591934, 0.009121476672589779, -0.010417597368359566, 0.01635708101093769, 0.08233311772346497, -0.025036435574293137, 0.00781013909727335, 0.05385266989469528, -0.06289057433605194, 0.03379179164767265, 0.015011022798717022, -0.029843410477042198, -0.003035908564925194, 0.05231070518493652, -0.03128298744559288, -0.01340642012655735, 0.12709808349609375, -0.0369725376367569, -0.08283114433288574, -0.08242800086736679, 0.036421939730644226, -0.027219489216804504, -0.04382677003741264, -0.05412590503692627, -0.04258941113948822, -0.0002897162630688399, 0.030650164932012558, 0.014420056715607643, -0.01640833169221878, 0.008063762448728085, -0.04367620497941971, -0.03794495761394501, 0.03350582718849182, -0.04607455059885979, -0.04288312420248985, 0.05960685759782791, 0.023560870438814163 ]
2024-05-20T17:32:23.500Z
{ "contentType": "News & Announcements", "productName": null, "tags": [ "Swift", "MongoDB" ], "version": null }
created
devcenter
Community members and developers are welcome to fork our existing driver and add features as you see fit - the Swift driver is under the Apache 2.0 license and source code is available on GitHub. For those developing client/mobile applications, MongoDB offers the Realm Swift SDK with real time sync to MongoDB Atlas. We would like to take this opportunity to express our heartfelt appreciation for the enthusiastic support that the Swift community has shown for MongoDB. Your loyalty and feedback have been invaluable to us throughout our journey, and we hope to resume development on the server-side Swift driver in the future.
https://www.mongodb.com/developer/languages/swift/halting-development-on-swift-driver
md
Halting Development on MongoDB Swift Driver
[ -0.04201998934149742, -0.036628011614084244, 0.021529875695705414, -0.02369876578450203, 0.014935408718883991, 0.003615425433963537, 0.012501300312578678, 0.03791311755776405, -0.027779564261436462, -0.04076854884624481, 0.02252265438437462, -0.03456484153866768, 0.0034513145219534636, 0.020197466015815735, 0.0023855012841522694, 0.03150872141122818, 0.003886809339746833, -0.02235211245715618, -0.02498810738325119, 0.0039032818749547005, 0.013486853800714016, -0.022320445626974106, -0.04440910369157791, -0.0654623880982399, 0.027000555768609047, 0.08285307139158249, -0.04272610321640968, -0.030201014131307602, -0.0291176438331604, -0.17995299398899078, 0.015676770359277725, -0.05449526011943817, 0.02936279959976673, -0.014332153834402561, -0.04146973788738251, -0.047725141048431396, -0.0013180722016841173, 0.06114330142736435, -0.023547353222966194, 0.01874822936952114, 0.06822915375232697, 0.000329695176333189, -0.04069110006093979, -0.061231739819049835, -0.03184710070490837, -0.07429246604442596, -0.004687426146119833, 0.00383779127150774, 0.015486421063542366, -0.06176157295703888, -0.03923069313168526, -0.05310862883925438, -0.01039100531488657, 0.03554392606019974, 0.0194248054176569, 0.06185049191117287, 0.045412857085466385, 0.03124449960887432, 0.06380443274974823, 0.03311619162559509, 0.04803944379091263, 0.012412207201123238, -0.1774139255285263, 0.07775907218456268, 0.023118088021874428, 0.07230816781520844, 0.0020140339620411396, -0.03614689037203789, -0.003973375074565411, -0.011888599954545498, -0.02620355784893036, 0.027567889541387558, 0.03188280016183853, 0.02284322679042816, 0.026412837207317352, -0.011291745118796825, -0.02066117338836193, -0.032161857932806015, -0.02351294830441475, 0.011414582841098309, -0.0036371212918311357, -0.015046884305775166, -0.017888884991407394, 0.03813159838318825, -0.02308444306254387, -0.02772665023803711, 0.018838517367839813, -0.05640285089612007, 0.04625276103615761, -0.023585600778460503, -0.015907272696495056, -0.04463423416018486, 0.06718891859054565, 0.009519539773464203, -0.10053399950265884, 0.02585047483444214, 0.009233172051608562, 0.025925828143954277, 0.003084240248426795, 0.24429798126220703, -0.029417656362056732, 0.03032510168850422, 0.0006808721809647977, -0.03206433355808258, -0.018231449648737907, -0.03035150282084942, -0.016913874074816704, -0.00784195214509964, 0.0015986738726496696, 0.04071904718875885, 0.008528691716492176, -0.047732871025800705, 0.025942951440811157, -0.01876961998641491, 0.014576414600014687, 0.016697188839316368, 0.012996913865208626, 0.031225524842739105, -0.011816895566880703, 0.028529025614261627, -0.021772349253296852, 0.030581697821617126, 0.061834536492824554, -0.022411666810512543, 0.04956333339214325, -0.03852106258273125, 0.08199001103639603, 0.08299500495195389, 0.05211205780506134, 0.040165744721889496, 0.04701720178127289, 0.012125659734010696, -0.08737719804048538, -0.0033183705527335405, 0.019632257521152496, 0.004994532559067011, -0.020217290148139, -0.014965889975428581, 0.027136031538248062, 0.002604757435619831, -0.03074362874031067, -0.08288361877202988, -0.013580936938524246, -0.06021936237812042, -0.03214862197637558, 0.06272657215595245, 0.01442071981728077, 0.05699184164404869, -0.04840848594903946, 0.0002788927231449634, 0.010455607436597347, 0.03562622144818306, -0.07770921289920807, -0.014146310277283192, 0.007926086895167828, 0.02816009521484375, 0.06978029012680054, 0.04149337485432625, -0.03585675731301308, 0.017009083181619644, -0.01823035255074501, -0.048733729869127274, -0.015325070358812809, 0.03766899183392525, 0.02239629253745079, -0.15152359008789062, 0.029442645609378815, 0.0346827432513237, 0.0008744749356992543, -0.020867206156253815, -0.05009685456752777, -0.007000736426562071, -0.04170915484428406, 0.010287471115589142, 0.11134066432714462, 0.02845090441405773, -0.06897419691085815, -0.03104596771299839, -0.015172979794442654, -0.043063852936029434, 0.015311543829739094, -0.06522903591394424, -0.04578494653105736, 0.027974991127848625, 0.038615111261606216, -0.032394226640462875, -0.010676500387489796, -0.048214223235845566, 0.03558943048119545, 0.007856686599552631, 0.0000791109778219834, 0.00021862566063646227, -0.011995990760624409, -0.0021508121863007545, -0.018346639350056648, -0.0726267397403717, -0.010750562883913517, -0.003374764695763588, 0.04678763449192047, 0.00303813093341887, 0.09033790975809097, 0.06588422507047653, 0.0006591599667444825, 0.03885858505964279, 0.009390775114297867, 0.00981676671653986, -0.0822472795844078, -0.016184737905859947, -0.008386491797864437, 0.0011353071313351393, -0.041543636471033096, 0.0011271827388554811, 0.029004473239183426, 0.016209691762924194, -0.052030012011528015, 0.016673680394887924, 0.008760497905313969, 0.049990661442279816, -0.0031441855244338512, 0.06372112780809402, 0.004987091291695833, -0.04670865833759308, -0.02845972217619419, -0.2792849838733673, 0.032471828162670135, -0.019036412239074707, -0.017602650448679924, 0.017919300124049187, -0.06817954778671265, 0.009298908524215221, -0.014466050080955029, -0.02115476503968239, 0.05483052879571915, 0.0867835059762001, -0.003958915360271931, 0.007336102891713381, 0.008806309662759304, -0.02959037572145462, 0.08958131074905396, 0.02111692726612091, -0.018837235867977142, -0.024112049490213394, 0.006642261985689402, 0.04751887917518616, 0.022727830335497856, -0.035757455974817276, -0.050668153911828995, 0.054435428231954575, 0.004771753679960966, 0.20177897810935974, 0.017865946516394615, 0.021604809910058975, -0.08462188392877579, 0.04504794254899025, 0.026854444295167923, -0.010899558663368225, -0.1431928426027298, 0.014146341942250729, 0.04437653720378876, 0.019926168024539948, -0.014125250279903412, -0.023147357627749443, -0.05136203393340111, -0.05490698292851448, 0.08256468921899796, 0.029421059414744377, -0.1164824441075325, 0.0054825544357299805, -0.007738566491752863, -0.03168182447552681, 0.022224904969334602, -0.0302957184612751, 0.023056237027049065, 0.013816534541547298, 0.03567221388220787, 0.07398147881031036, 0.059838756918907166, -0.02293821983039379, -0.05054112523794174, -0.07416064292192459, 0.03222354128956795, -0.030768901109695435, 0.057042453438043594, -0.009051652625203133, -0.015711726620793343, 0.01336620096117258, -0.023584619164466858, 0.039843522012233734, -0.0062872059643268585, -0.04204948991537094, -0.038108840584754944, 0.06253951787948608, -0.04024258255958557, -0.007978919893503189, 0.03801392763853073, -0.019465046003460884, 0.03204525262117386, 0.02513568289577961, 0.033573538064956665, 0.0401768833398819, -0.012033004313707352, -0.04189491271972656, -0.03603866323828697, 0.010220654308795929, -0.013940899632871151, 0.0724702775478363, 0.05277553200721741, 0.0329250693321228, 0.056813549250364304, 0.04669185355305672, 0.012972790747880936, -0.029709184542298317, -0.01882384531199932, -0.027007099241018295, 0.02162892557680607, -0.02458546869456768, -0.09269536286592484, 0.024211866781115532, 0.04135885462164879, -0.2716534733772278, 0.0338900163769722, -0.032888490706682205, 0.02555234357714653, -0.022506099194288254, 0.058723803609609604, 0.04154687747359276, 0.03804570436477661, -0.06590858846902847, 0.012236620299518108, -0.0003727426228579134, 0.03495151922106743, 0.016982365399599075, 0.029541226103901863, 0.041519589722156525, 0.046765461564064026, 0.06388256698846817, -0.05268411338329315, 0.020677395164966583, -0.08755379915237427, 0.001661740941926837, 0.05905401334166527, 0.24104908108711243, -0.024296600371599197, 0.03417191281914711, 0.04996182769536972, 0.0013576039345934987, 0.04067061096429825, 0.06899859011173248, 0.0007732295780442655, -0.001023990917019546, 0.018654227256774902, 0.08508714288473129, -0.02392520383000374, 0.013166584074497223, 0.06020643562078476, -0.0676724910736084, 0.00711824232712388, 0.01994992233812809, -0.0026456566993147135, 0.009125916287302971, 0.04950229823589325, -0.034680332988500595, 0.0055025070905685425, 0.10321441292762756, -0.03854573518037796, -0.06420076638460159, -0.07424503564834595, 0.01619899645447731, -0.008729780092835426, -0.048271212726831436, -0.05920160561800003, -0.02894827350974083, -0.0019924112129956484, 0.03652949258685112, -0.0034794132225215435, -0.017699452117085457, 0.0037475114222615957, -0.06144086271524429, -0.038237664848566055, 0.025230074301362038, -0.0628335028886795, -0.005072164814919233, 0.02873992919921875, -0.017286602407693863 ]